From 1d5447f368ab221c7645949bfe4353bebab793da Mon Sep 17 00:00:00 2001 From: Bogdan Irimie Date: Mon, 13 Nov 2023 17:50:49 +0200 Subject: [PATCH] Generate GRPC bindings --- .gitignore | 1 + .../directory/common/v2/CommonProto.java | 183 +- .../com/aserto/directory/common/v2/Flag.java | 1 + .../aserto/directory/common/v2/Object.java | 488 +- .../directory/common/v2/ObjectDependency.java | 379 +- .../common/v2/ObjectDependencyOrBuilder.java | 41 +- .../directory/common/v2/ObjectIdentifier.java | 215 +- .../common/v2/ObjectIdentifierOrBuilder.java | 30 +- .../directory/common/v2/ObjectOrBuilder.java | 48 +- .../directory/common/v2/ObjectType.java | 419 +- .../common/v2/ObjectTypeIdentifier.java | 125 +- .../v2/ObjectTypeIdentifierOrBuilder.java | 20 +- .../common/v2/ObjectTypeOrBuilder.java | 38 +- .../common/v2/PaginationRequest.java | 35 + .../common/v2/PaginationRequestOrBuilder.java | 1 + .../common/v2/PaginationResponse.java | 35 + .../v2/PaginationResponseOrBuilder.java | 1 + .../directory/common/v2/Permission.java | 456 +- .../common/v2/PermissionIdentifier.java | 205 +- .../v2/PermissionIdentifierOrBuilder.java | 30 +- .../common/v2/PermissionOrBuilder.java | 48 +- .../aserto/directory/common/v2/Relation.java | 310 +- .../common/v2/RelationIdentifier.java | 77 +- .../v2/RelationIdentifierOrBuilder.java | 1 + .../common/v2/RelationOrBuilder.java | 32 +- .../directory/common/v2/RelationType.java | 425 +- .../common/v2/RelationTypeIdentifier.java | 137 +- .../v2/RelationTypeIdentifierOrBuilder.java | 20 +- .../common/v2/RelationTypeOrBuilder.java | 38 +- .../directory/common/v3/CommonProto.java | 221 + .../aserto/directory/common/v3/Object.java | 1504 ++++ .../directory/common/v3/ObjectDependency.java | 1497 ++++ .../common/v3/ObjectDependencyOrBuilder.java | 191 + .../directory/common/v3/ObjectIdentifier.java | 595 ++ .../common/v3/ObjectIdentifierOrBuilder.java | 50 + .../directory/common/v3/ObjectOrBuilder.java | 171 + .../directory/common/v3/ObjectType.java | 867 +++ .../common/v3/ObjectTypeOrBuilder.java | 112 + .../common/v3/PaginationRequest.java | 514 ++ .../common/v3/PaginationRequestOrBuilder.java | 40 + .../common/v3/PaginationResponse.java | 451 ++ .../v3/PaginationResponseOrBuilder.java | 30 + .../aserto/directory/common/v3/Relation.java | 1729 +++++ .../common/v3/RelationOrBuilder.java | 204 + .../directory/exporter/v2/ExportRequest.java | 57 +- .../exporter/v2/ExportRequestOrBuilder.java | 1 + .../directory/exporter/v2/ExportResponse.java | 35 + .../exporter/v2/ExportResponseOrBuilder.java | 1 + .../directory/exporter/v2/ExporterGrpc.java | 57 +- .../directory/exporter/v2/ExporterProto.java | 1 + .../aserto/directory/exporter/v2/Option.java | 5 +- .../directory/exporter/v3/ExportRequest.java | 577 ++ .../exporter/v3/ExportRequestOrBuilder.java | 47 + .../directory/exporter/v3/ExportResponse.java | 820 +++ .../exporter/v3/ExportResponseOrBuilder.java | 66 + .../directory/exporter/v3/ExporterGrpc.java | 286 + .../directory/exporter/v3/ExporterProto.java | 84 + .../aserto/directory/exporter/v3/Option.java | 164 + .../directory/importer/v2/ImportCounter.java | 35 + .../importer/v2/ImportCounterOrBuilder.java | 1 + .../directory/importer/v2/ImportRequest.java | 35 + .../importer/v2/ImportRequestOrBuilder.java | 1 + .../directory/importer/v2/ImportResponse.java | 97 +- .../importer/v2/ImportResponseOrBuilder.java | 1 + .../directory/importer/v2/ImporterGrpc.java | 57 +- .../directory/importer/v2/ImporterProto.java | 1 + .../aserto/directory/importer/v2/Opcode.java | 1 + .../directory/importer/v3/ImportCounter.java | 551 ++ .../importer/v3/ImportCounterOrBuilder.java | 50 + .../directory/importer/v3/ImportRequest.java | 924 +++ .../importer/v3/ImportRequestOrBuilder.java | 85 + .../directory/importer/v3/ImportResponse.java | 721 ++ .../importer/v3/ImportResponseOrBuilder.java | 64 + .../directory/importer/v3/ImporterGrpc.java | 277 + .../directory/importer/v3/ImporterProto.java | 97 + .../aserto/directory/importer/v3/Opcode.java | 123 + .../com/aserto/directory/model/v3/Body.java | 363 + .../directory/model/v3/BodyOrBuilder.java | 20 + .../model/v3/DeleteManifestRequest.java | 514 ++ .../v3/DeleteManifestRequestOrBuilder.java | 37 + .../model/v3/DeleteManifestResponse.java | 514 ++ .../v3/DeleteManifestResponseOrBuilder.java | 37 + .../model/v3/GetManifestRequest.java | 514 ++ .../model/v3/GetManifestRequestOrBuilder.java | 37 + .../model/v3/GetManifestResponse.java | 1050 +++ .../v3/GetManifestResponseOrBuilder.java | 93 + .../aserto/directory/model/v3/Metadata.java | 658 ++ .../directory/model/v3/MetadataOrBuilder.java | 57 + .../aserto/directory/model/v3/ModelGrpc.java | 418 ++ .../aserto/directory/model/v3/ModelProto.java | 190 + .../model/v3/SetManifestRequest.java | 590 ++ .../model/v3/SetManifestRequestOrBuilder.java | 39 + .../model/v3/SetManifestResponse.java | 514 ++ .../v3/SetManifestResponseOrBuilder.java | 37 + .../reader/v2/CheckPermissionRequest.java | 77 +- .../v2/CheckPermissionRequestOrBuilder.java | 1 + .../reader/v2/CheckPermissionResponse.java | 43 +- .../v2/CheckPermissionResponseOrBuilder.java | 3 +- .../reader/v2/CheckRelationRequest.java | 77 +- .../v2/CheckRelationRequestOrBuilder.java | 1 + .../reader/v2/CheckRelationResponse.java | 43 +- .../v2/CheckRelationResponseOrBuilder.java | 3 +- .../directory/reader/v2/CheckResponse.java | 43 +- .../reader/v2/CheckResponseOrBuilder.java | 3 +- .../directory/reader/v2/GetGraphRequest.java | 87 +- .../reader/v2/GetGraphRequestOrBuilder.java | 1 + .../directory/reader/v2/GetGraphResponse.java | 35 + .../reader/v2/GetGraphResponseOrBuilder.java | 1 + .../reader/v2/GetObjectManyRequest.java | 35 + .../v2/GetObjectManyRequestOrBuilder.java | 1 + .../reader/v2/GetObjectManyResponse.java | 35 + .../v2/GetObjectManyResponseOrBuilder.java | 1 + .../directory/reader/v2/GetObjectRequest.java | 352 +- .../reader/v2/GetObjectRequestOrBuilder.java | 47 + .../reader/v2/GetObjectResponse.java | 659 +- .../reader/v2/GetObjectResponseOrBuilder.java | 72 + .../reader/v2/GetObjectTypeRequest.java | 57 +- .../v2/GetObjectTypeRequestOrBuilder.java | 1 + .../reader/v2/GetObjectTypeResponse.java | 57 +- .../v2/GetObjectTypeResponseOrBuilder.java | 1 + .../reader/v2/GetObjectTypesRequest.java | 57 +- .../v2/GetObjectTypesRequestOrBuilder.java | 1 + .../reader/v2/GetObjectTypesResponse.java | 58 +- .../v2/GetObjectTypesResponseOrBuilder.java | 1 + .../reader/v2/GetObjectsRequest.java | 67 +- .../reader/v2/GetObjectsRequestOrBuilder.java | 1 + .../reader/v2/GetObjectsResponse.java | 58 +- .../v2/GetObjectsResponseOrBuilder.java | 1 + .../reader/v2/GetPermissionRequest.java | 57 +- .../v2/GetPermissionRequestOrBuilder.java | 1 + .../reader/v2/GetPermissionResponse.java | 57 +- .../v2/GetPermissionResponseOrBuilder.java | 1 + .../reader/v2/GetPermissionsRequest.java | 57 +- .../v2/GetPermissionsRequestOrBuilder.java | 1 + .../reader/v2/GetPermissionsResponse.java | 58 +- .../v2/GetPermissionsResponseOrBuilder.java | 1 + .../reader/v2/GetRelationRequest.java | 60 +- .../v2/GetRelationRequestOrBuilder.java | 1 + .../reader/v2/GetRelationResponse.java | 128 +- .../v2/GetRelationResponseOrBuilder.java | 1 + .../reader/v2/GetRelationTypeRequest.java | 57 +- .../v2/GetRelationTypeRequestOrBuilder.java | 1 + .../reader/v2/GetRelationTypeResponse.java | 57 +- .../v2/GetRelationTypeResponseOrBuilder.java | 1 + .../reader/v2/GetRelationTypesRequest.java | 91 +- .../v2/GetRelationTypesRequestOrBuilder.java | 7 +- .../reader/v2/GetRelationTypesResponse.java | 58 +- .../v2/GetRelationTypesResponseOrBuilder.java | 1 + .../reader/v2/GetRelationsRequest.java | 67 +- .../v2/GetRelationsRequestOrBuilder.java | 1 + .../reader/v2/GetRelationsResponse.java | 58 +- .../v2/GetRelationsResponseOrBuilder.java | 1 + .../directory/reader/v2/ReaderGrpc.java | 285 +- .../directory/reader/v2/ReaderProto.java | 258 +- .../reader/v3/CheckPermissionRequest.java | 1082 +++ .../v3/CheckPermissionRequestOrBuilder.java | 120 + .../reader/v3/CheckPermissionResponse.java | 570 ++ .../v3/CheckPermissionResponseOrBuilder.java | 61 + .../reader/v3/CheckRelationRequest.java | 1082 +++ .../v3/CheckRelationRequestOrBuilder.java | 120 + .../reader/v3/CheckRelationResponse.java | 570 ++ .../v3/CheckRelationResponseOrBuilder.java | 61 + .../directory/reader/v3/CheckRequest.java | 1082 +++ .../reader/v3/CheckRequestOrBuilder.java | 120 + .../directory/reader/v3/CheckResponse.java | 570 ++ .../reader/v3/CheckResponseOrBuilder.java | 61 + .../directory/reader/v3/GetGraphRequest.java | 1451 ++++ .../reader/v3/GetGraphRequestOrBuilder.java | 170 + .../directory/reader/v3/GetGraphResponse.java | 693 ++ .../reader/v3/GetGraphResponseOrBuilder.java | 54 + .../reader/v3/GetObjectManyRequest.java | 693 ++ .../v3/GetObjectManyRequestOrBuilder.java | 54 + .../reader/v3/GetObjectManyResponse.java | 693 ++ .../v3/GetObjectManyResponseOrBuilder.java | 54 + .../directory/reader/v3/GetObjectRequest.java | 865 +++ .../reader/v3/GetObjectRequestOrBuilder.java | 87 + .../reader/v3/GetObjectResponse.java | 1116 +++ .../reader/v3/GetObjectResponseOrBuilder.java | 108 + .../reader/v3/GetObjectsRequest.java | 658 ++ .../reader/v3/GetObjectsRequestOrBuilder.java | 57 + .../reader/v3/GetObjectsResponse.java | 909 +++ .../v3/GetObjectsResponseOrBuilder.java | 81 + .../reader/v3/GetRelationRequest.java | 1226 ++++ .../v3/GetRelationRequestOrBuilder.java | 140 + .../reader/v3/GetRelationResponse.java | 834 +++ .../v3/GetRelationResponseOrBuilder.java | 91 + .../reader/v3/GetRelationsRequest.java | 1441 ++++ .../v3/GetRelationsRequestOrBuilder.java | 167 + .../reader/v3/GetRelationsResponse.java | 1229 ++++ .../v3/GetRelationsResponseOrBuilder.java | 135 + .../directory/reader/v3/ReaderGrpc.java | 957 +++ .../directory/reader/v3/ReaderProto.java | 653 ++ .../schema/v2/AccountProperties.java | 725 ++ .../schema/v2/AccountPropertiesOrBuilder.java | 68 + .../directory/schema/v2/GroupProperties.java | 49 +- .../schema/v2/GroupPropertiesOrBuilder.java | 5 +- .../directory/schema/v2/GroupProto.java | 1 + .../directory/schema/v2/GuideState.java | 585 ++ .../schema/v2/GuideStateOrBuilder.java | 47 + .../directory/schema/v2/IdentityKind.java | 5 +- .../schema/v2/IdentityProperties.java | 35 + .../v2/IdentityPropertiesOrBuilder.java | 1 + .../directory/schema/v2/IdentityProto.java | 3 +- .../directory/schema/v2/TenantKind.java | 131 + .../directory/schema/v2/TenantProperties.java | 752 ++ .../schema/v2/TenantPropertiesOrBuilder.java | 76 + .../directory/schema/v2/TenantProto.java | 95 + .../directory/schema/v2/UserProperties.java | 49 +- .../schema/v2/UserPropertiesOrBuilder.java | 5 +- .../aserto/directory/schema/v2/UserProto.java | 1 + .../directory/schema/v2/UserStatus.java | 19 +- .../schema/v3/AccountProperties.java | 725 ++ .../schema/v3/AccountPropertiesOrBuilder.java | 68 + .../directory/schema/v3/GroupProperties.java | 451 ++ .../schema/v3/GroupPropertiesOrBuilder.java | 30 + .../directory/schema/v3/GroupProto.java | 56 + .../directory/schema/v3/GuideState.java | 585 ++ .../schema/v3/GuideStateOrBuilder.java | 47 + .../directory/schema/v3/IdentityKind.java | 215 + .../schema/v3/IdentityProperties.java | 789 +++ .../v3/IdentityPropertiesOrBuilder.java | 88 + .../directory/schema/v3/IdentityProto.java | 65 + .../directory/schema/v3/TenantKind.java | 131 + .../directory/schema/v3/TenantProperties.java | 752 ++ .../schema/v3/TenantPropertiesOrBuilder.java | 76 + .../directory/schema/v3/TenantProto.java | 95 + .../directory/schema/v3/UserProperties.java | 906 +++ .../schema/v3/UserPropertiesOrBuilder.java | 99 + .../aserto/directory/schema/v3/UserProto.java | 66 + .../directory/schema/v3/UserStatus.java | 257 + .../com/aserto/directory/v3/OpenapiProto.java | 61 + .../writer/v2/DeleteObjectRequest.java | 169 +- .../v2/DeleteObjectRequestOrBuilder.java | 26 +- .../writer/v2/DeleteObjectResponse.java | 57 +- .../v2/DeleteObjectResponseOrBuilder.java | 1 + .../writer/v2/DeleteObjectTypeRequest.java | 81 +- .../v2/DeleteObjectTypeRequestOrBuilder.java | 7 +- .../writer/v2/DeleteObjectTypeResponse.java | 57 +- .../v2/DeleteObjectTypeResponseOrBuilder.java | 1 + .../writer/v2/DeletePermissionRequest.java | 81 +- .../v2/DeletePermissionRequestOrBuilder.java | 7 +- .../writer/v2/DeletePermissionResponse.java | 57 +- .../v2/DeletePermissionResponseOrBuilder.java | 1 + .../writer/v2/DeleteRelationRequest.java | 81 +- .../v2/DeleteRelationRequestOrBuilder.java | 7 +- .../writer/v2/DeleteRelationResponse.java | 57 +- .../v2/DeleteRelationResponseOrBuilder.java | 1 + .../writer/v2/DeleteRelationTypeRequest.java | 81 +- .../DeleteRelationTypeRequestOrBuilder.java | 7 +- .../writer/v2/DeleteRelationTypeResponse.java | 57 +- .../DeleteRelationTypeResponseOrBuilder.java | 1 + .../directory/writer/v2/SetObjectRequest.java | 81 +- .../writer/v2/SetObjectRequestOrBuilder.java | 7 +- .../writer/v2/SetObjectResponse.java | 57 +- .../writer/v2/SetObjectResponseOrBuilder.java | 1 + .../writer/v2/SetObjectTypeRequest.java | 81 +- .../v2/SetObjectTypeRequestOrBuilder.java | 7 +- .../writer/v2/SetObjectTypeResponse.java | 57 +- .../v2/SetObjectTypeResponseOrBuilder.java | 1 + .../writer/v2/SetPermissionRequest.java | 81 +- .../v2/SetPermissionRequestOrBuilder.java | 7 +- .../writer/v2/SetPermissionResponse.java | 57 +- .../v2/SetPermissionResponseOrBuilder.java | 1 + .../writer/v2/SetRelationRequest.java | 81 +- .../v2/SetRelationRequestOrBuilder.java | 7 +- .../writer/v2/SetRelationResponse.java | 57 +- .../v2/SetRelationResponseOrBuilder.java | 1 + .../writer/v2/SetRelationTypeRequest.java | 81 +- .../v2/SetRelationTypeRequestOrBuilder.java | 7 +- .../writer/v2/SetRelationTypeResponse.java | 57 +- .../v2/SetRelationTypeResponseOrBuilder.java | 1 + .../directory/writer/v2/WriterGrpc.java | 201 +- .../directory/writer/v2/WriterProto.java | 106 +- .../writer/v3/DeleteObjectRequest.java | 650 ++ .../v3/DeleteObjectRequestOrBuilder.java | 60 + .../writer/v3/DeleteObjectResponse.java | 514 ++ .../v3/DeleteObjectResponseOrBuilder.java | 37 + .../writer/v3/DeleteRelationRequest.java | 1163 ++++ .../v3/DeleteRelationRequestOrBuilder.java | 130 + .../writer/v3/DeleteRelationResponse.java | 514 ++ .../v3/DeleteRelationResponseOrBuilder.java | 37 + .../directory/writer/v3/SetObjectRequest.java | 514 ++ .../writer/v3/SetObjectRequestOrBuilder.java | 37 + .../writer/v3/SetObjectResponse.java | 514 ++ .../writer/v3/SetObjectResponseOrBuilder.java | 37 + .../writer/v3/SetRelationRequest.java | 514 ++ .../v3/SetRelationRequestOrBuilder.java | 37 + .../writer/v3/SetRelationResponse.java | 514 ++ .../v3/SetRelationResponseOrBuilder.java | 37 + .../directory/writer/v3/WriterGrpc.java | 539 ++ .../directory/writer/v3/WriterProto.java | 246 + src/main/java/com/buf/validate/AnyRules.java | 931 +++ .../com/buf/validate/AnyRulesOrBuilder.java | 156 + src/main/java/com/buf/validate/BoolRules.java | 448 ++ .../com/buf/validate/BoolRulesOrBuilder.java | 45 + .../java/com/buf/validate/BytesRules.java | 2539 +++++++ .../com/buf/validate/BytesRulesOrBuilder.java | 547 ++ .../java/com/buf/validate/Constraint.java | 816 +++ .../com/buf/validate/ConstraintOrBuilder.java | 84 + .../java/com/buf/validate/DoubleRules.java | 1813 +++++ .../buf/validate/DoubleRulesOrBuilder.java | 352 + .../java/com/buf/validate/DurationRules.java | 3515 ++++++++++ .../buf/validate/DurationRulesOrBuilder.java | 515 ++ src/main/java/com/buf/validate/EnumRules.java | 1274 ++++ .../com/buf/validate/EnumRulesOrBuilder.java | 252 + .../com/buf/validate/ExpressionProto.java | 82 + .../com/buf/validate/FieldConstraints.java | 5374 +++++++++++++++ .../validate/FieldConstraintsOrBuilder.java | 541 ++ .../java/com/buf/validate/Fixed32Rules.java | 1744 +++++ .../buf/validate/Fixed32RulesOrBuilder.java | 341 + .../java/com/buf/validate/Fixed64Rules.java | 1744 +++++ .../buf/validate/Fixed64RulesOrBuilder.java | 341 + .../java/com/buf/validate/FloatRules.java | 1813 +++++ .../com/buf/validate/FloatRulesOrBuilder.java | 352 + .../java/com/buf/validate/Int32Rules.java | 1734 +++++ .../com/buf/validate/Int32RulesOrBuilder.java | 341 + .../java/com/buf/validate/Int64Rules.java | 1734 +++++ .../com/buf/validate/Int64RulesOrBuilder.java | 341 + .../java/com/buf/validate/KnownRegex.java | 143 + src/main/java/com/buf/validate/MapRules.java | 1313 ++++ .../com/buf/validate/MapRulesOrBuilder.java | 212 + .../com/buf/validate/MessageConstraints.java | 1187 ++++ .../validate/MessageConstraintsOrBuilder.java | 164 + .../com/buf/validate/OneofConstraints.java | 496 ++ .../validate/OneofConstraintsOrBuilder.java | 61 + .../java/com/buf/validate/RepeatedRules.java | 1128 +++ .../buf/validate/RepeatedRulesOrBuilder.java | 194 + .../java/com/buf/validate/SFixed32Rules.java | 1744 +++++ .../buf/validate/SFixed32RulesOrBuilder.java | 341 + .../java/com/buf/validate/SFixed64Rules.java | 1744 +++++ .../buf/validate/SFixed64RulesOrBuilder.java | 341 + .../java/com/buf/validate/SInt32Rules.java | 1732 +++++ .../buf/validate/SInt32RulesOrBuilder.java | 341 + .../java/com/buf/validate/SInt64Rules.java | 1732 +++++ .../buf/validate/SInt64RulesOrBuilder.java | 341 + .../java/com/buf/validate/StringRules.java | 6058 +++++++++++++++++ .../buf/validate/StringRulesOrBuilder.java | 1432 ++++ .../java/com/buf/validate/TimestampRules.java | 2773 ++++++++ .../buf/validate/TimestampRulesOrBuilder.java | 428 ++ .../java/com/buf/validate/UInt32Rules.java | 1734 +++++ .../buf/validate/UInt32RulesOrBuilder.java | 341 + .../java/com/buf/validate/UInt64Rules.java | 1734 +++++ .../buf/validate/UInt64RulesOrBuilder.java | 341 + .../java/com/buf/validate/ValidateProto.java | 1601 +++++ src/main/java/com/buf/validate/Violation.java | 845 +++ .../com/buf/validate/ViolationOrBuilder.java | 86 + .../java/com/buf/validate/Violations.java | 705 ++ .../com/buf/validate/ViolationsOrBuilder.java | 54 + .../com/buf/validate/priv/Constraint.java | 655 ++ .../validate/priv/ConstraintOrBuilder.java | 46 + .../buf/validate/priv/FieldConstraints.java | 609 ++ .../priv/FieldConstraintsOrBuilder.java | 34 + .../com/buf/validate/priv/PrivateProto.java | 91 + .../options/AnnotationsProto.java | 168 + .../protoc_gen_openapiv2/options/Contact.java | 787 +++ .../options/ContactOrBuilder.java | 74 + .../options/ExternalDocumentation.java | 637 ++ .../ExternalDocumentationOrBuilder.java | 54 + .../protoc_gen_openapiv2/options/Header.java | 1045 +++ .../options/HeaderOrBuilder.java | 114 + .../options/HeaderParameter.java | 1055 +++ .../options/HeaderParameterOrBuilder.java | 101 + .../protoc_gen_openapiv2/options/Info.java | 1707 +++++ .../options/InfoOrBuilder.java | 212 + .../options/JSONSchema.java | 4012 +++++++++++ .../options/JSONSchemaOrBuilder.java | 463 ++ .../protoc_gen_openapiv2/options/License.java | 627 ++ .../options/LicenseOrBuilder.java | 50 + .../options/Openapiv2Proto.java | 606 ++ .../options/Operation.java | 3467 ++++++++++ .../options/OperationOrBuilder.java | 540 ++ .../options/Parameters.java | 732 ++ .../options/ParametersOrBuilder.java | 59 + .../options/Response.java | 1621 +++++ .../options/ResponseOrBuilder.java | 249 + .../protoc_gen_openapiv2/options/Schema.java | 1087 +++ .../options/SchemaOrBuilder.java | 116 + .../protoc_gen_openapiv2/options/Scheme.java | 146 + .../protoc_gen_openapiv2/options/Scopes.java | 615 ++ .../options/ScopesOrBuilder.java | 69 + .../options/SecurityDefinitions.java | 653 ++ .../options/SecurityDefinitionsOrBuilder.java | 69 + .../options/SecurityRequirement.java | 1173 ++++ .../options/SecurityRequirementOrBuilder.java | 79 + .../options/SecurityScheme.java | 2244 ++++++ .../options/SecuritySchemeOrBuilder.java | 261 + .../protoc_gen_openapiv2/options/Swagger.java | 3821 +++++++++++ .../options/SwaggerOrBuilder.java | 568 ++ .../protoc_gen_openapiv2/options/Tag.java | 1179 ++++ .../options/TagOrBuilder.java | 147 + 390 files changed, 151965 insertions(+), 3854 deletions(-) create mode 100644 src/main/java/com/aserto/directory/common/v3/CommonProto.java create mode 100644 src/main/java/com/aserto/directory/common/v3/Object.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectDependency.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectDependencyOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectIdentifier.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectIdentifierOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectType.java create mode 100644 src/main/java/com/aserto/directory/common/v3/ObjectTypeOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/PaginationRequest.java create mode 100644 src/main/java/com/aserto/directory/common/v3/PaginationRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/PaginationResponse.java create mode 100644 src/main/java/com/aserto/directory/common/v3/PaginationResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/common/v3/Relation.java create mode 100644 src/main/java/com/aserto/directory/common/v3/RelationOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExportRequest.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExportRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExportResponse.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExportResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExporterGrpc.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/ExporterProto.java create mode 100644 src/main/java/com/aserto/directory/exporter/v3/Option.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportCounter.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportCounterOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportRequest.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportResponse.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImportResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImporterGrpc.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/ImporterProto.java create mode 100644 src/main/java/com/aserto/directory/importer/v3/Opcode.java create mode 100644 src/main/java/com/aserto/directory/model/v3/Body.java create mode 100644 src/main/java/com/aserto/directory/model/v3/BodyOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/DeleteManifestRequest.java create mode 100644 src/main/java/com/aserto/directory/model/v3/DeleteManifestRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/DeleteManifestResponse.java create mode 100644 src/main/java/com/aserto/directory/model/v3/DeleteManifestResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/GetManifestRequest.java create mode 100644 src/main/java/com/aserto/directory/model/v3/GetManifestRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/GetManifestResponse.java create mode 100644 src/main/java/com/aserto/directory/model/v3/GetManifestResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/Metadata.java create mode 100644 src/main/java/com/aserto/directory/model/v3/MetadataOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/ModelGrpc.java create mode 100644 src/main/java/com/aserto/directory/model/v3/ModelProto.java create mode 100644 src/main/java/com/aserto/directory/model/v3/SetManifestRequest.java create mode 100644 src/main/java/com/aserto/directory/model/v3/SetManifestRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/model/v3/SetManifestResponse.java create mode 100644 src/main/java/com/aserto/directory/model/v3/SetManifestResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckPermissionRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckPermissionRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckPermissionResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckPermissionResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRelationRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRelationRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRelationResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRelationResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/CheckResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetGraphRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetGraphRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetGraphResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetGraphResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectManyRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectManyRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectManyResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectManyResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectsRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectsRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectsResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetObjectsResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationsRequest.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationsRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationsResponse.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/GetRelationsResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/ReaderGrpc.java create mode 100644 src/main/java/com/aserto/directory/reader/v3/ReaderProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/AccountProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/AccountPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/GuideState.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/GuideStateOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/TenantKind.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/TenantProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/TenantPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v2/TenantProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/AccountProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/AccountPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/GroupProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/GroupPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/GroupProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/GuideState.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/GuideStateOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/IdentityKind.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/IdentityProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/IdentityPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/IdentityProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/TenantKind.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/TenantProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/TenantPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/TenantProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/UserProperties.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/UserPropertiesOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/UserProto.java create mode 100644 src/main/java/com/aserto/directory/schema/v3/UserStatus.java create mode 100644 src/main/java/com/aserto/directory/v3/OpenapiProto.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteObjectRequest.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteObjectRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteObjectResponse.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteObjectResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteRelationRequest.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteRelationRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteRelationResponse.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/DeleteRelationResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetObjectRequest.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetObjectRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetObjectResponse.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetObjectResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetRelationRequest.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetRelationRequestOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetRelationResponse.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/SetRelationResponseOrBuilder.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/WriterGrpc.java create mode 100644 src/main/java/com/aserto/directory/writer/v3/WriterProto.java create mode 100644 src/main/java/com/buf/validate/AnyRules.java create mode 100644 src/main/java/com/buf/validate/AnyRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/BoolRules.java create mode 100644 src/main/java/com/buf/validate/BoolRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/BytesRules.java create mode 100644 src/main/java/com/buf/validate/BytesRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Constraint.java create mode 100644 src/main/java/com/buf/validate/ConstraintOrBuilder.java create mode 100644 src/main/java/com/buf/validate/DoubleRules.java create mode 100644 src/main/java/com/buf/validate/DoubleRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/DurationRules.java create mode 100644 src/main/java/com/buf/validate/DurationRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/EnumRules.java create mode 100644 src/main/java/com/buf/validate/EnumRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/ExpressionProto.java create mode 100644 src/main/java/com/buf/validate/FieldConstraints.java create mode 100644 src/main/java/com/buf/validate/FieldConstraintsOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Fixed32Rules.java create mode 100644 src/main/java/com/buf/validate/Fixed32RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Fixed64Rules.java create mode 100644 src/main/java/com/buf/validate/Fixed64RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/FloatRules.java create mode 100644 src/main/java/com/buf/validate/FloatRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Int32Rules.java create mode 100644 src/main/java/com/buf/validate/Int32RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Int64Rules.java create mode 100644 src/main/java/com/buf/validate/Int64RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/KnownRegex.java create mode 100644 src/main/java/com/buf/validate/MapRules.java create mode 100644 src/main/java/com/buf/validate/MapRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/MessageConstraints.java create mode 100644 src/main/java/com/buf/validate/MessageConstraintsOrBuilder.java create mode 100644 src/main/java/com/buf/validate/OneofConstraints.java create mode 100644 src/main/java/com/buf/validate/OneofConstraintsOrBuilder.java create mode 100644 src/main/java/com/buf/validate/RepeatedRules.java create mode 100644 src/main/java/com/buf/validate/RepeatedRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/SFixed32Rules.java create mode 100644 src/main/java/com/buf/validate/SFixed32RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/SFixed64Rules.java create mode 100644 src/main/java/com/buf/validate/SFixed64RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/SInt32Rules.java create mode 100644 src/main/java/com/buf/validate/SInt32RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/SInt64Rules.java create mode 100644 src/main/java/com/buf/validate/SInt64RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/StringRules.java create mode 100644 src/main/java/com/buf/validate/StringRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/TimestampRules.java create mode 100644 src/main/java/com/buf/validate/TimestampRulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/UInt32Rules.java create mode 100644 src/main/java/com/buf/validate/UInt32RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/UInt64Rules.java create mode 100644 src/main/java/com/buf/validate/UInt64RulesOrBuilder.java create mode 100644 src/main/java/com/buf/validate/ValidateProto.java create mode 100644 src/main/java/com/buf/validate/Violation.java create mode 100644 src/main/java/com/buf/validate/ViolationOrBuilder.java create mode 100644 src/main/java/com/buf/validate/Violations.java create mode 100644 src/main/java/com/buf/validate/ViolationsOrBuilder.java create mode 100644 src/main/java/com/buf/validate/priv/Constraint.java create mode 100644 src/main/java/com/buf/validate/priv/ConstraintOrBuilder.java create mode 100644 src/main/java/com/buf/validate/priv/FieldConstraints.java create mode 100644 src/main/java/com/buf/validate/priv/FieldConstraintsOrBuilder.java create mode 100644 src/main/java/com/buf/validate/priv/PrivateProto.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/AnnotationsProto.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Contact.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ContactOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ExternalDocumentation.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ExternalDocumentationOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Header.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/HeaderOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/HeaderParameter.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/HeaderParameterOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Info.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/InfoOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/JSONSchema.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/JSONSchemaOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/License.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/LicenseOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Openapiv2Proto.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Operation.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/OperationOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Parameters.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ParametersOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Response.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ResponseOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Schema.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SchemaOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Scheme.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Scopes.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/ScopesOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecurityDefinitions.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecurityDefinitionsOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecurityRequirement.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecurityRequirementOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecurityScheme.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SecuritySchemeOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Swagger.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/SwaggerOrBuilder.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/Tag.java create mode 100644 src/main/java/com/grpc/gateway/protoc_gen_openapiv2/options/TagOrBuilder.java diff --git a/.gitignore b/.gitignore index 1c7d9cf..91329d4 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ target/ # IDE specific .idea .vscode +*.iml # demo assets /examples/.env diff --git a/src/main/java/com/aserto/directory/common/v2/CommonProto.java b/src/main/java/com/aserto/directory/common/v2/CommonProto.java index ab9ddf9..857bfb6 100644 --- a/src/main/java/com/aserto/directory/common/v2/CommonProto.java +++ b/src/main/java/com/aserto/directory/common/v2/CommonProto.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: aserto/directory/common/v2/common.proto +// Protobuf Java Version: 3.25.0 package com.aserto.directory.common.v2; public final class CommonProto { @@ -91,91 +92,83 @@ public static void registerAllExtensions( "\n\'aserto/directory/common/v2/common.prot" + "o\022\032aserto.directory.common.v2\032\034google/pr" + "otobuf/struct.proto\032\037google/protobuf/tim" + - "estamp.proto\"\232\003\n\nObjectType\022\016\n\002id\030\001 \001(\005R" + - "\002id\022\022\n\004name\030\002 \001(\tR\004name\022!\n\014display_name\030" + - "\003 \001(\tR\013displayName\022\035\n\nis_subject\030\004 \001(\010R\t" + - "isSubject\022\030\n\007ordinal\030\005 \001(\005R\007ordinal\022\026\n\006s" + - "tatus\030\006 \001(\rR\006status\022/\n\006schema\030\n \001(\0132\027.go" + - "ogle.protobuf.StructR\006schema\0229\n\ncreated_" + - "at\030\024 \001(\0132\032.google.protobuf.TimestampR\tcr" + - "eatedAt\0229\n\nupdated_at\030\025 \001(\0132\032.google.pro" + - "tobuf.TimestampR\tupdatedAt\0229\n\ndeleted_at" + - "\030\026 \001(\0132\032.google.protobuf.TimestampR\tdele" + - "tedAt\022\022\n\004hash\030\027 \001(\tR\004hash\"\230\002\n\nPermission" + - "\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022!\n\014" + - "display_name\030\003 \001(\tR\013displayName\0229\n\ncreat" + - "ed_at\030\024 \001(\0132\032.google.protobuf.TimestampR" + - "\tcreatedAt\0229\n\nupdated_at\030\025 \001(\0132\032.google." + - "protobuf.TimestampR\tupdatedAt\0229\n\ndeleted" + - "_at\030\026 \001(\0132\032.google.protobuf.TimestampR\td" + - "eletedAt\022\022\n\004hash\030\027 \001(\tR\004hash\"\247\003\n\014Relatio" + - "nType\022\016\n\002id\030\001 \001(\005R\002id\022\022\n\004name\030\002 \001(\tR\004nam" + - "e\022\037\n\013object_type\030\003 \001(\tR\nobjectType\022!\n\014di" + - "splay_name\030\004 \001(\tR\013displayName\022\030\n\007ordinal" + - "\030\005 \001(\005R\007ordinal\022\026\n\006status\030\006 \001(\rR\006status\022" + - "\026\n\006unions\030\007 \003(\tR\006unions\022 \n\013permissions\030\010" + - " \003(\tR\013permissions\0229\n\ncreated_at\030\024 \001(\0132\032." + - "google.protobuf.TimestampR\tcreatedAt\0229\n\n" + - "updated_at\030\025 \001(\0132\032.google.protobuf.Times" + - "tampR\tupdatedAt\0229\n\ndeleted_at\030\026 \001(\0132\032.go" + - "ogle.protobuf.TimestampR\tdeletedAt\022\022\n\004ha" + - "sh\030\027 \001(\tR\004hash\"\337\002\n\006Object\022\016\n\002id\030\001 \001(\tR\002i" + - "d\022\020\n\003key\030\002 \001(\tR\003key\022\022\n\004type\030\003 \001(\tR\004type\022" + - "!\n\014display_name\030\004 \001(\tR\013displayName\0227\n\npr" + - "operties\030\005 \001(\0132\027.google.protobuf.StructR" + - "\nproperties\0229\n\ncreated_at\030\024 \001(\0132\032.google" + - ".protobuf.TimestampR\tcreatedAt\0229\n\nupdate" + - "d_at\030\025 \001(\0132\032.google.protobuf.TimestampR\t" + - "updatedAt\0229\n\ndeleted_at\030\026 \001(\0132\032.google.p" + - "rotobuf.TimestampR\tdeletedAt\022\022\n\004hash\030\027 \001" + - "(\tR\004hash\"\371\002\n\010Relation\022F\n\007subject\030\001 \001(\0132," + - ".aserto.directory.common.v2.ObjectIdenti" + - "fierR\007subject\022\032\n\010relation\030\002 \001(\tR\010relatio" + - "n\022D\n\006object\030\003 \001(\0132,.aserto.directory.com" + - "mon.v2.ObjectIdentifierR\006object\0229\n\ncreat" + - "ed_at\030\024 \001(\0132\032.google.protobuf.TimestampR" + - "\tcreatedAt\0229\n\nupdated_at\030\025 \001(\0132\032.google." + - "protobuf.TimestampR\tupdatedAt\0229\n\ndeleted" + - "_at\030\026 \001(\0132\032.google.protobuf.TimestampR\td" + - "eletedAt\022\022\n\004hash\030\027 \001(\tR\004hash\"\263\002\n\020ObjectD" + - "ependency\022\037\n\013object_type\030\001 \001(\tR\nobjectTy" + - "pe\022\033\n\tobject_id\030\003 \001(\tR\010objectId\022\035\n\nobjec" + - "t_key\030\004 \001(\tR\tobjectKey\022\032\n\010relation\030\005 \001(\t" + - "R\010relation\022!\n\014subject_type\030\007 \001(\tR\013subjec" + - "tType\022\035\n\nsubject_id\030\t \001(\tR\tsubjectId\022\037\n\013" + - "subject_key\030\n \001(\tR\nsubjectKey\022\024\n\005depth\030\013" + - " \001(\005R\005depth\022\031\n\010is_cycle\030\014 \001(\010R\007isCycle\022\022" + - "\n\004path\030\r \003(\tR\004path\"T\n\024ObjectTypeIdentifi" + - "er\022\023\n\002id\030\001 \001(\005H\000R\002id\210\001\001\022\027\n\004name\030\002 \001(\tH\001R" + - "\004name\210\001\001B\005\n\003_idB\007\n\005_name\"T\n\024PermissionId" + - "entifier\022\023\n\002id\030\001 \001(\tH\000R\002id\210\001\001\022\027\n\004name\030\002 " + - "\001(\tH\001R\004name\210\001\001B\005\n\003_idB\007\n\005_name\"\214\001\n\026Relat" + - "ionTypeIdentifier\022\023\n\002id\030\001 \001(\005H\000R\002id\210\001\001\022\027" + - "\n\004name\030\002 \001(\tH\001R\004name\210\001\001\022$\n\013object_type\030\003" + - " \001(\tH\002R\nobjectType\210\001\001B\005\n\003_idB\007\n\005_nameB\016\n" + - "\014_object_type\"o\n\020ObjectIdentifier\022\027\n\004typ" + - "e\030\001 \001(\tH\000R\004type\210\001\001\022\023\n\002id\030\002 \001(\tH\001R\002id\210\001\001\022" + - "\025\n\003key\030\003 \001(\tH\002R\003key\210\001\001B\007\n\005_typeB\005\n\003_idB\006" + - "\n\004_key\"\362\001\n\022RelationIdentifier\022F\n\007subject" + - "\030\001 \001(\0132,.aserto.directory.common.v2.Obje" + - "ctIdentifierR\007subject\022N\n\010relation\030\002 \001(\0132" + - "2.aserto.directory.common.v2.RelationTyp" + - "eIdentifierR\010relation\022D\n\006object\030\003 \001(\0132,." + - "aserto.directory.common.v2.ObjectIdentif" + - "ierR\006object\"=\n\021PaginationRequest\022\022\n\004size" + - "\030\001 \001(\005R\004size\022\024\n\005token\030\002 \001(\tR\005token\"T\n\022Pa" + - "ginationResponse\022\035\n\nnext_token\030\001 \001(\tR\tne" + - "xtToken\022\037\n\013result_size\030\002 \001(\005R\nresultSize" + - "*^\n\004Flag\022\020\n\014FLAG_UNKNOWN\020\000\022\017\n\013FLAG_HIDDE" + - "N\020\001\022\021\n\rFLAG_READONLY\020\002\022\017\n\013FLAG_SYSTEM\020\004\022" + - "\017\n\013FLAG_SHADOW\020\010B\205\002\n\036com.aserto.director" + - "y.common.v2B\013CommonProtoH\002P\001ZDgithub.com" + - "/aserto-dev/go-directory/aserto/director" + - "y/common/v2;common\370\001\000\242\002\003ADC\252\002\032Aserto.Dir" + - "ectory.Common.V2\312\002\033Aserto\\Directory_\\Com" + - "mon\\V2\342\002\'Aserto\\Directory_\\Common\\V2\\GPB" + - "Metadata\352\002\035Aserto::Directory::Common::V2" + - "b\006proto3" + "estamp.proto\"\353\002\n\nObjectType\022\022\n\004name\030\002 \001(" + + "\tR\004name\022!\n\014display_name\030\003 \001(\tR\013displayNa" + + "me\022\035\n\nis_subject\030\004 \001(\010R\tisSubject\022\030\n\007ord" + + "inal\030\005 \001(\005R\007ordinal\022\026\n\006status\030\006 \001(\rR\006sta" + + "tus\022/\n\006schema\030\n \001(\0132\027.google.protobuf.St" + + "ructR\006schema\0229\n\ncreated_at\030\024 \001(\0132\032.googl" + + "e.protobuf.TimestampR\tcreatedAt\0229\n\nupdat" + + "ed_at\030\025 \001(\0132\032.google.protobuf.TimestampR" + + "\tupdatedAt\022\022\n\004hash\030\027 \001(\tR\004hashJ\004\010\001\020\002J\004\010\026" + + "\020\027R\002idR\ndeleted_at\"\351\001\n\nPermission\022\022\n\004nam" + + "e\030\002 \001(\tR\004name\022!\n\014display_name\030\003 \001(\tR\013dis" + + "playName\0229\n\ncreated_at\030\024 \001(\0132\032.google.pr" + + "otobuf.TimestampR\tcreatedAt\0229\n\nupdated_a" + + "t\030\025 \001(\0132\032.google.protobuf.TimestampR\tupd" + + "atedAt\022\022\n\004hash\030\027 \001(\tR\004hashJ\004\010\001\020\002J\004\010\026\020\027R\002" + + "idR\ndeleted_at\"\370\002\n\014RelationType\022\022\n\004name\030" + + "\002 \001(\tR\004name\022\037\n\013object_type\030\003 \001(\tR\nobject" + + "Type\022!\n\014display_name\030\004 \001(\tR\013displayName\022" + + "\030\n\007ordinal\030\005 \001(\005R\007ordinal\022\026\n\006status\030\006 \001(" + + "\rR\006status\022\026\n\006unions\030\007 \003(\tR\006unions\022 \n\013per" + + "missions\030\010 \003(\tR\013permissions\0229\n\ncreated_a" + + "t\030\024 \001(\0132\032.google.protobuf.TimestampR\tcre" + + "atedAt\0229\n\nupdated_at\030\025 \001(\0132\032.google.prot" + + "obuf.TimestampR\tupdatedAt\022\022\n\004hash\030\027 \001(\tR" + + "\004hashJ\004\010\001\020\002J\004\010\026\020\027R\002idR\ndeleted_at\"\260\002\n\006Ob" + + "ject\022\020\n\003key\030\002 \001(\tR\003key\022\022\n\004type\030\003 \001(\tR\004ty" + + "pe\022!\n\014display_name\030\004 \001(\tR\013displayName\0227\n" + + "\nproperties\030\005 \001(\0132\027.google.protobuf.Stru" + + "ctR\nproperties\0229\n\ncreated_at\030\024 \001(\0132\032.goo" + + "gle.protobuf.TimestampR\tcreatedAt\0229\n\nupd" + + "ated_at\030\025 \001(\0132\032.google.protobuf.Timestam" + + "pR\tupdatedAt\022\022\n\004hash\030\027 \001(\tR\004hashJ\004\010\001\020\002J\004" + + "\010\026\020\027R\002idR\ndeleted_at\"\320\002\n\010Relation\022F\n\007sub" + + "ject\030\001 \001(\0132,.aserto.directory.common.v2." + + "ObjectIdentifierR\007subject\022\032\n\010relation\030\002 " + + "\001(\tR\010relation\022D\n\006object\030\003 \001(\0132,.aserto.d" + + "irectory.common.v2.ObjectIdentifierR\006obj" + + "ect\0229\n\ncreated_at\030\024 \001(\0132\032.google.protobu" + + "f.TimestampR\tcreatedAt\0229\n\nupdated_at\030\025 \001" + + "(\0132\032.google.protobuf.TimestampR\tupdatedA" + + "t\022\022\n\004hash\030\027 \001(\tR\004hashJ\004\010\026\020\027R\ndeleted_at\"" + + "\232\002\n\020ObjectDependency\022\037\n\013object_type\030\001 \001(" + + "\tR\nobjectType\022\035\n\nobject_key\030\004 \001(\tR\tobjec" + + "tKey\022\032\n\010relation\030\005 \001(\tR\010relation\022!\n\014subj" + + "ect_type\030\007 \001(\tR\013subjectType\022\037\n\013subject_k" + + "ey\030\n \001(\tR\nsubjectKey\022\024\n\005depth\030\013 \001(\005R\005dep" + + "th\022\031\n\010is_cycle\030\014 \001(\010R\007isCycle\022\022\n\004path\030\r " + + "\003(\tR\004pathJ\004\010\003\020\004J\004\010\t\020\nR\tobject_idR\nsubjec" + + "t_id\"B\n\024ObjectTypeIdentifier\022\027\n\004name\030\002 \001" + + "(\tH\000R\004name\210\001\001B\007\n\005_nameJ\004\010\001\020\002R\002id\"B\n\024Perm" + + "issionIdentifier\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001" + + "\001B\007\n\005_nameJ\004\010\001\020\002R\002id\"z\n\026RelationTypeIden" + + "tifier\022\027\n\004name\030\002 \001(\tH\000R\004name\210\001\001\022$\n\013objec" + + "t_type\030\003 \001(\tH\001R\nobjectType\210\001\001B\007\n\005_nameB\016" + + "\n\014_object_typeJ\004\010\001\020\002R\002id\"]\n\020ObjectIdenti" + + "fier\022\027\n\004type\030\001 \001(\tH\000R\004type\210\001\001\022\025\n\003key\030\003 \001" + + "(\tH\001R\003key\210\001\001B\007\n\005_typeB\006\n\004_keyJ\004\010\002\020\003R\002id\"" + + "\362\001\n\022RelationIdentifier\022F\n\007subject\030\001 \001(\0132" + + ",.aserto.directory.common.v2.ObjectIdent" + + "ifierR\007subject\022N\n\010relation\030\002 \001(\01322.asert" + + "o.directory.common.v2.RelationTypeIdenti" + + "fierR\010relation\022D\n\006object\030\003 \001(\0132,.aserto." + + "directory.common.v2.ObjectIdentifierR\006ob" + + "ject\"=\n\021PaginationRequest\022\022\n\004size\030\001 \001(\005R" + + "\004size\022\024\n\005token\030\002 \001(\tR\005token\"T\n\022Paginatio" + + "nResponse\022\035\n\nnext_token\030\001 \001(\tR\tnextToken" + + "\022\037\n\013result_size\030\002 \001(\005R\nresultSize*^\n\004Fla" + + "g\022\020\n\014FLAG_UNKNOWN\020\000\022\017\n\013FLAG_HIDDEN\020\001\022\021\n\r" + + "FLAG_READONLY\020\002\022\017\n\013FLAG_SYSTEM\020\004\022\017\n\013FLAG" + + "_SHADOW\020\010B\205\002\n\036com.aserto.directory.commo" + + "n.v2B\013CommonProtoH\002P\001ZDgithub.com/aserto" + + "-dev/go-directory/aserto/directory/commo" + + "n/v2;common\370\001\000\242\002\003ADC\252\002\032Aserto.Directory." + + "Common.V2\312\002\033Aserto\\Directory_\\Common\\V2\342" + + "\002\'Aserto\\Directory_\\Common\\V2\\GPBMetadat" + + "a\352\002\035Aserto::Directory::Common::V2b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -188,61 +181,61 @@ public static void registerAllExtensions( internal_static_aserto_directory_common_v2_ObjectType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_ObjectType_descriptor, - new java.lang.String[] { "Id", "Name", "DisplayName", "IsSubject", "Ordinal", "Status", "Schema", "CreatedAt", "UpdatedAt", "DeletedAt", "Hash", }); + new java.lang.String[] { "Name", "DisplayName", "IsSubject", "Ordinal", "Status", "Schema", "CreatedAt", "UpdatedAt", "Hash", }); internal_static_aserto_directory_common_v2_Permission_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_aserto_directory_common_v2_Permission_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_Permission_descriptor, - new java.lang.String[] { "Id", "Name", "DisplayName", "CreatedAt", "UpdatedAt", "DeletedAt", "Hash", }); + new java.lang.String[] { "Name", "DisplayName", "CreatedAt", "UpdatedAt", "Hash", }); internal_static_aserto_directory_common_v2_RelationType_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_aserto_directory_common_v2_RelationType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_RelationType_descriptor, - new java.lang.String[] { "Id", "Name", "ObjectType", "DisplayName", "Ordinal", "Status", "Unions", "Permissions", "CreatedAt", "UpdatedAt", "DeletedAt", "Hash", }); + new java.lang.String[] { "Name", "ObjectType", "DisplayName", "Ordinal", "Status", "Unions", "Permissions", "CreatedAt", "UpdatedAt", "Hash", }); internal_static_aserto_directory_common_v2_Object_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_aserto_directory_common_v2_Object_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_Object_descriptor, - new java.lang.String[] { "Id", "Key", "Type", "DisplayName", "Properties", "CreatedAt", "UpdatedAt", "DeletedAt", "Hash", }); + new java.lang.String[] { "Key", "Type", "DisplayName", "Properties", "CreatedAt", "UpdatedAt", "Hash", }); internal_static_aserto_directory_common_v2_Relation_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_aserto_directory_common_v2_Relation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_Relation_descriptor, - new java.lang.String[] { "Subject", "Relation", "Object", "CreatedAt", "UpdatedAt", "DeletedAt", "Hash", }); + new java.lang.String[] { "Subject", "Relation", "Object", "CreatedAt", "UpdatedAt", "Hash", }); internal_static_aserto_directory_common_v2_ObjectDependency_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_aserto_directory_common_v2_ObjectDependency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_ObjectDependency_descriptor, - new java.lang.String[] { "ObjectType", "ObjectId", "ObjectKey", "Relation", "SubjectType", "SubjectId", "SubjectKey", "Depth", "IsCycle", "Path", }); + new java.lang.String[] { "ObjectType", "ObjectKey", "Relation", "SubjectType", "SubjectKey", "Depth", "IsCycle", "Path", }); internal_static_aserto_directory_common_v2_ObjectTypeIdentifier_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_aserto_directory_common_v2_ObjectTypeIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_ObjectTypeIdentifier_descriptor, - new java.lang.String[] { "Id", "Name", "Id", "Name", }); + new java.lang.String[] { "Name", }); internal_static_aserto_directory_common_v2_PermissionIdentifier_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_aserto_directory_common_v2_PermissionIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_PermissionIdentifier_descriptor, - new java.lang.String[] { "Id", "Name", "Id", "Name", }); + new java.lang.String[] { "Name", }); internal_static_aserto_directory_common_v2_RelationTypeIdentifier_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_aserto_directory_common_v2_RelationTypeIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_RelationTypeIdentifier_descriptor, - new java.lang.String[] { "Id", "Name", "ObjectType", "Id", "Name", "ObjectType", }); + new java.lang.String[] { "Name", "ObjectType", }); internal_static_aserto_directory_common_v2_ObjectIdentifier_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_aserto_directory_common_v2_ObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aserto_directory_common_v2_ObjectIdentifier_descriptor, - new java.lang.String[] { "Type", "Id", "Key", "Type", "Id", "Key", }); + new java.lang.String[] { "Type", "Key", }); internal_static_aserto_directory_common_v2_RelationIdentifier_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_aserto_directory_common_v2_RelationIdentifier_fieldAccessorTable = new diff --git a/src/main/java/com/aserto/directory/common/v2/Flag.java b/src/main/java/com/aserto/directory/common/v2/Flag.java index 120b572..df007a3 100644 --- a/src/main/java/com/aserto/directory/common/v2/Flag.java +++ b/src/main/java/com/aserto/directory/common/v2/Flag.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: aserto/directory/common/v2/common.proto +// Protobuf Java Version: 3.25.0 package com.aserto.directory.common.v2; /** diff --git a/src/main/java/com/aserto/directory/common/v2/Object.java b/src/main/java/com/aserto/directory/common/v2/Object.java index a48e8fc..6653631 100644 --- a/src/main/java/com/aserto/directory/common/v2/Object.java +++ b/src/main/java/com/aserto/directory/common/v2/Object.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: aserto/directory/common/v2/common.proto +// Protobuf Java Version: 3.25.0 package com.aserto.directory.common.v2; /** @@ -16,7 +17,6 @@ private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Object() { - id_ = ""; key_ = ""; type_ = ""; displayName_ = ""; @@ -43,53 +43,7 @@ protected java.lang.Object newInstance( com.aserto.directory.common.v2.Object.class, com.aserto.directory.common.v2.Object.Builder.class); } - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-   * internal object id (uuid)
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-   * internal object id (uuid)
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - + private int bitField0_; public static final int KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; @@ -243,7 +197,7 @@ public java.lang.String getDisplayName() { */ @java.lang.Override public boolean hasProperties() { - return properties_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -281,7 +235,7 @@ public com.google.protobuf.StructOrBuilder getPropertiesOrBuilder() {
    */
   @java.lang.Override
   public boolean hasCreatedAt() {
-    return createdAt_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -319,7 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUpdatedAt() {
-    return updatedAt_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    * 
@@ -345,44 +299,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
     return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
   }
 
-  public static final int DELETED_AT_FIELD_NUMBER = 22;
-  private com.google.protobuf.Timestamp deletedAt_;
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - @java.lang.Override - public boolean hasDeletedAt() { - return deletedAt_ != null; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeletedAt() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - public static final int HASH_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; @@ -474,11 +390,13 @@ public static com.aserto.directory.common.v2.Object parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.Object parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.Object parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -542,19 +460,26 @@ public static final class Builder extends // Construct using com.aserto.directory.common.v2.Object.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - id_ = ""; key_ = ""; type_ = ""; displayName_ = ""; @@ -573,11 +498,6 @@ public Builder clear() { updatedAtBuilder_.dispose(); updatedAtBuilder_ = null; } - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } hash_ = ""; return this; } @@ -613,135 +533,72 @@ public com.aserto.directory.common.v2.Object buildPartial() { private void buildPartial0(com.aserto.directory.common.v2.Object result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.key_ = key_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { result.properties_ = propertiesBuilder_ == null ? properties_ : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.updatedAt_ = updatedAtBuilder_ == null ? updatedAt_ : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.deletedAt_ = deletedAtBuilder_ == null - ? deletedAt_ - : deletedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.hash_ = hash_; } + result.bitField0_ |= to_bitField0_; } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-     * internal object id (uuid)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - *
-     * internal object id (uuid)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * internal object id (uuid)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-     * internal object id (uuid)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-     * internal object id (uuid)
-     * 
- * - * string id = 1 [json_name = "id"]; - * @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(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object key_ = ""; /** @@ -798,7 +655,7 @@ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -812,7 +669,7 @@ public Builder setKey( */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -830,7 +687,7 @@ public Builder setKeyBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -890,7 +747,7 @@ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -904,7 +761,7 @@ public Builder setType( */ public Builder clearType() { type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -922,7 +779,7 @@ public Builder setTypeBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -982,7 +839,7 @@ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -996,7 +853,7 @@ public Builder setDisplayName( */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1014,7 +871,7 @@ public Builder setDisplayNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1031,7 +888,7 @@ public Builder setDisplayNameBytes( * @return Whether the properties field is set. */ public boolean hasProperties() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** *
@@ -1064,7 +921,7 @@ public Builder setProperties(com.google.protobuf.Struct value) {
       } else {
         propertiesBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1082,7 +939,7 @@ public Builder setProperties(
       } else {
         propertiesBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1095,7 +952,7 @@ public Builder setProperties(
      */
     public Builder mergeProperties(com.google.protobuf.Struct value) {
       if (propertiesBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
+        if (((bitField0_ & 0x00000008) != 0) &&
           properties_ != null &&
           properties_ != com.google.protobuf.Struct.getDefaultInstance()) {
           getPropertiesBuilder().mergeFrom(value);
@@ -1105,8 +962,10 @@ public Builder mergeProperties(com.google.protobuf.Struct value) {
       } else {
         propertiesBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (properties_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1117,7 +976,7 @@ public Builder mergeProperties(com.google.protobuf.Struct value) {
      * .google.protobuf.Struct properties = 5 [json_name = "properties"];
      */
     public Builder clearProperties() {
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000008);
       properties_ = null;
       if (propertiesBuilder_ != null) {
         propertiesBuilder_.dispose();
@@ -1134,7 +993,7 @@ public Builder clearProperties() {
      * .google.protobuf.Struct properties = 5 [json_name = "properties"];
      */
     public com.google.protobuf.Struct.Builder getPropertiesBuilder() {
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return getPropertiesFieldBuilder().getBuilder();
     }
@@ -1186,7 +1045,7 @@ public com.google.protobuf.StructOrBuilder getPropertiesOrBuilder() {
      * @return Whether the createdAt field is set.
      */
     public boolean hasCreatedAt() {
-      return ((bitField0_ & 0x00000020) != 0);
+      return ((bitField0_ & 0x00000010) != 0);
     }
     /**
      * 
@@ -1219,7 +1078,7 @@ public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
@@ -1237,7 +1096,7 @@ public Builder setCreatedAt(
       } else {
         createdAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
@@ -1250,7 +1109,7 @@ public Builder setCreatedAt(
      */
     public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       if (createdAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
+        if (((bitField0_ & 0x00000010) != 0) &&
           createdAt_ != null &&
           createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCreatedAtBuilder().mergeFrom(value);
@@ -1260,8 +1119,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000020;
-      onChanged();
+      if (createdAt_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1272,7 +1133,7 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public Builder clearCreatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000020);
+      bitField0_ = (bitField0_ & ~0x00000010);
       createdAt_ = null;
       if (createdAtBuilder_ != null) {
         createdAtBuilder_.dispose();
@@ -1289,7 +1150,7 @@ public Builder clearCreatedAt() {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000010;
       onChanged();
       return getCreatedAtFieldBuilder().getBuilder();
     }
@@ -1341,7 +1202,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
      * @return Whether the updatedAt field is set.
      */
     public boolean hasUpdatedAt() {
-      return ((bitField0_ & 0x00000040) != 0);
+      return ((bitField0_ & 0x00000020) != 0);
     }
     /**
      * 
@@ -1374,7 +1235,7 @@ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1392,7 +1253,7 @@ public Builder setUpdatedAt(
       } else {
         updatedAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1405,7 +1266,7 @@ public Builder setUpdatedAt(
      */
     public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       if (updatedAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
+        if (((bitField0_ & 0x00000020) != 0) &&
           updatedAt_ != null &&
           updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdatedAtBuilder().mergeFrom(value);
@@ -1415,8 +1276,10 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000040;
-      onChanged();
+      if (updatedAt_ != null) {
+        bitField0_ |= 0x00000020;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1427,7 +1290,7 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public Builder clearUpdatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000020);
       updatedAt_ = null;
       if (updatedAtBuilder_ != null) {
         updatedAtBuilder_.dispose();
@@ -1444,7 +1307,7 @@ public Builder clearUpdatedAt() {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return getUpdatedAtFieldBuilder().getBuilder();
     }
@@ -1484,161 +1347,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
       return updatedAtBuilder_;
     }
 
-    private com.google.protobuf.Timestamp deletedAt_;
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_;
-    /**
-     * 
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - public boolean hasDeletedAt() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - public com.google.protobuf.Timestamp getDeletedAt() { - if (deletedAtBuilder_ == null) { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } else { - return deletedAtBuilder_.getMessage(); - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deletedAt_ = value; - } else { - deletedAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deletedAtBuilder_ == null) { - deletedAt_ = builderForValue.build(); - } else { - deletedAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - deletedAt_ != null && - deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeletedAtBuilder().mergeFrom(value); - } else { - deletedAt_ = value; - } - } else { - deletedAtBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder clearDeletedAt() { - bitField0_ = (bitField0_ & ~0x00000080); - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDeletedAtFieldBuilder().getBuilder(); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - if (deletedAtBuilder_ != null) { - return deletedAtBuilder_.getMessageOrBuilder(); - } else { - return deletedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeletedAtFieldBuilder() { - if (deletedAtBuilder_ == null) { - deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeletedAt(), - getParentForChildren(), - isClean()); - deletedAt_ = null; - } - return deletedAtBuilder_; - } - private java.lang.Object hash_ = ""; /** *
@@ -1694,7 +1402,7 @@ public Builder setHash(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       hash_ = value;
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1708,7 +1416,7 @@ public Builder setHash(
      */
     public Builder clearHash() {
       hash_ = getDefaultInstance().getHash();
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000040);
       onChanged();
       return this;
     }
@@ -1726,7 +1434,7 @@ public Builder setHashBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       hash_ = value;
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectDependency.java b/src/main/java/com/aserto/directory/common/v2/ObjectDependency.java
index 4d77334..1f58481 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectDependency.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectDependency.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -17,11 +18,9 @@ private ObjectDependency(com.google.protobuf.GeneratedMessageV3.Builder build
   }
   private ObjectDependency() {
     objectType_ = "";
-    objectId_ = "";
     objectKey_ = "";
     relation_ = "";
     subjectType_ = "";
-    subjectId_ = "";
     subjectKey_ = "";
     path_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
@@ -94,53 +93,6 @@ public java.lang.String getObjectType() {
     }
   }
 
-  public static final int OBJECT_ID_FIELD_NUMBER = 3;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object objectId_ = "";
-  /**
-   * 
-   * object id (uuid) of source object
-   * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The objectId. - */ - @java.lang.Override - public java.lang.String getObjectId() { - java.lang.Object ref = objectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - objectId_ = s; - return s; - } - } - /** - *
-   * object id (uuid) of source object
-   * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The bytes for objectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getObjectIdBytes() { - java.lang.Object ref = objectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - objectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int OBJECT_KEY_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object objectKey_ = ""; @@ -282,53 +234,6 @@ public java.lang.String getSubjectType() { } } - public static final int SUBJECT_ID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object subjectId_ = ""; - /** - *
-   * object id (uuid) of target object
-   * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The subjectId. - */ - @java.lang.Override - public java.lang.String getSubjectId() { - java.lang.Object ref = subjectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectId_ = s; - return s; - } - } - /** - *
-   * object id (uuid) of target object
-   * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The bytes for subjectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSubjectIdBytes() { - java.lang.Object ref = subjectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int SUBJECT_KEY_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object subjectKey_ = ""; @@ -503,11 +408,13 @@ public static com.aserto.directory.common.v2.ObjectDependency parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.ObjectDependency parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.ObjectDependency parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -584,11 +491,9 @@ public Builder clear() { super.clear(); bitField0_ = 0; objectType_ = ""; - objectId_ = ""; objectKey_ = ""; relation_ = ""; subjectType_ = ""; - subjectId_ = ""; subjectKey_ = ""; depth_ = 0; isCycle_ = false; @@ -631,35 +536,61 @@ private void buildPartial0(com.aserto.directory.common.v2.ObjectDependency resul result.objectType_ = objectType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectId_ = objectId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { result.objectKey_ = objectKey_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.relation_ = relation_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.subjectType_ = subjectType_; } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.subjectId_ = subjectId_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.subjectKey_ = subjectKey_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.depth_ = depth_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.isCycle_ = isCycle_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { path_.makeImmutable(); result.path_ = path_; } } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } private int bitField0_; private java.lang.Object objectType_ = ""; @@ -754,98 +685,6 @@ public Builder setObjectTypeBytes( return this; } - private java.lang.Object objectId_ = ""; - /** - *
-     * object id (uuid) of source object
-     * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The objectId. - */ - public java.lang.String getObjectId() { - java.lang.Object ref = objectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - objectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * object id (uuid) of source object
-     * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The bytes for objectId. - */ - public com.google.protobuf.ByteString - getObjectIdBytes() { - java.lang.Object ref = objectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - objectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * object id (uuid) of source object
-     * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @param value The objectId to set. - * @return This builder for chaining. - */ - public Builder setObjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - objectId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * object id (uuid) of source object
-     * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return This builder for chaining. - */ - public Builder clearObjectId() { - objectId_ = getDefaultInstance().getObjectId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * object id (uuid) of source object
-     * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @param value The bytes for objectId to set. - * @return This builder for chaining. - */ - public Builder setObjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - objectId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - private java.lang.Object objectKey_ = ""; /** *
@@ -901,7 +740,7 @@ public Builder setObjectKey(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       objectKey_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -915,7 +754,7 @@ public Builder setObjectKey(
      */
     public Builder clearObjectKey() {
       objectKey_ = getDefaultInstance().getObjectKey();
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -933,7 +772,7 @@ public Builder setObjectKeyBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       objectKey_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -993,7 +832,7 @@ public Builder setRelation(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       relation_ = value;
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1007,7 +846,7 @@ public Builder setRelation(
      */
     public Builder clearRelation() {
       relation_ = getDefaultInstance().getRelation();
-      bitField0_ = (bitField0_ & ~0x00000008);
+      bitField0_ = (bitField0_ & ~0x00000004);
       onChanged();
       return this;
     }
@@ -1025,7 +864,7 @@ public Builder setRelationBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       relation_ = value;
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1085,7 +924,7 @@ public Builder setSubjectType(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       subjectType_ = value;
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1099,7 +938,7 @@ public Builder setSubjectType(
      */
     public Builder clearSubjectType() {
       subjectType_ = getDefaultInstance().getSubjectType();
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000008);
       onChanged();
       return this;
     }
@@ -1117,99 +956,7 @@ public Builder setSubjectTypeBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       subjectType_ = value;
-      bitField0_ |= 0x00000010;
-      onChanged();
-      return this;
-    }
-
-    private java.lang.Object subjectId_ = "";
-    /**
-     * 
-     * object id (uuid) of target object
-     * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The subjectId. - */ - public java.lang.String getSubjectId() { - java.lang.Object ref = subjectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * object id (uuid) of target object
-     * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The bytes for subjectId. - */ - public com.google.protobuf.ByteString - getSubjectIdBytes() { - java.lang.Object ref = subjectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * object id (uuid) of target object
-     * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @param value The subjectId to set. - * @return This builder for chaining. - */ - public Builder setSubjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - subjectId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * object id (uuid) of target object
-     * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return This builder for chaining. - */ - public Builder clearSubjectId() { - subjectId_ = getDefaultInstance().getSubjectId(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-     * object id (uuid) of target object
-     * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @param value The bytes for subjectId to set. - * @return This builder for chaining. - */ - public Builder setSubjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - subjectId_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1269,7 +1016,7 @@ public Builder setSubjectKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subjectKey_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1283,7 +1030,7 @@ public Builder setSubjectKey( */ public Builder clearSubjectKey() { subjectKey_ = getDefaultInstance().getSubjectKey(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1301,7 +1048,7 @@ public Builder setSubjectKeyBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subjectKey_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1331,7 +1078,7 @@ public int getDepth() { public Builder setDepth(int value) { depth_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1344,7 +1091,7 @@ public Builder setDepth(int value) { * @return This builder for chaining. */ public Builder clearDepth() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); depth_ = 0; onChanged(); return this; @@ -1375,7 +1122,7 @@ public boolean getIsCycle() { public Builder setIsCycle(boolean value) { isCycle_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1388,7 +1135,7 @@ public Builder setIsCycle(boolean value) { * @return This builder for chaining. */ public Builder clearIsCycle() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); isCycle_ = false; onChanged(); return this; @@ -1400,7 +1147,7 @@ private void ensurePathIsMutable() { if (!path_.isModifiable()) { path_ = new com.google.protobuf.LazyStringArrayList(path_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; } /** *
@@ -1466,7 +1213,7 @@ public Builder setPath(
       if (value == null) { throw new NullPointerException(); }
       ensurePathIsMutable();
       path_.set(index, value);
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1484,7 +1231,7 @@ public Builder addPath(
       if (value == null) { throw new NullPointerException(); }
       ensurePathIsMutable();
       path_.add(value);
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1502,7 +1249,7 @@ public Builder addAllPath(
       ensurePathIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(
           values, path_);
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1517,7 +1264,7 @@ public Builder addAllPath(
     public Builder clearPath() {
       path_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-      bitField0_ = (bitField0_ & ~0x00000200);;
+      bitField0_ = (bitField0_ & ~0x00000080);;
       onChanged();
       return this;
     }
@@ -1536,7 +1283,7 @@ public Builder addPathBytes(
       checkByteStringIsUtf8(value);
       ensurePathIsMutable();
       path_.add(value);
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectDependencyOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/ObjectDependencyOrBuilder.java
index 31adbae..be8840e 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectDependencyOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectDependencyOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface ObjectDependencyOrBuilder extends
@@ -27,26 +28,6 @@ public interface ObjectDependencyOrBuilder extends
   com.google.protobuf.ByteString
       getObjectTypeBytes();
 
-  /**
-   * 
-   * object id (uuid) of source object
-   * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The objectId. - */ - java.lang.String getObjectId(); - /** - *
-   * object id (uuid) of source object
-   * 
- * - * string object_id = 3 [json_name = "objectId"]; - * @return The bytes for objectId. - */ - com.google.protobuf.ByteString - getObjectIdBytes(); - /** *
    * object search key of source object
@@ -107,26 +88,6 @@ public interface ObjectDependencyOrBuilder extends
   com.google.protobuf.ByteString
       getSubjectTypeBytes();
 
-  /**
-   * 
-   * object id (uuid) of target object
-   * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The subjectId. - */ - java.lang.String getSubjectId(); - /** - *
-   * object id (uuid) of target object
-   * 
- * - * string subject_id = 9 [json_name = "subjectId"]; - * @return The bytes for subjectId. - */ - com.google.protobuf.ByteString - getSubjectIdBytes(); - /** *
    * object search key of target object
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectIdentifier.java b/src/main/java/com/aserto/directory/common/v2/ObjectIdentifier.java
index eb397d3..906cb56 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectIdentifier.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectIdentifier.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -21,7 +22,6 @@ private ObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder build
   }
   private ObjectIdentifier() {
     type_ = "";
-    id_ = "";
     key_ = "";
   }
 
@@ -105,65 +105,6 @@ public java.lang.String getType() {
     }
   }
 
-  public static final int ID_FIELD_NUMBER = 2;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object id_ = "";
-  /**
-   * 
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int KEY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; @@ -177,7 +118,7 @@ public java.lang.String getId() { */ @java.lang.Override public boolean hasKey() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** *
@@ -267,11 +208,13 @@ public static com.aserto.directory.common.v2.ObjectIdentifier parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.ObjectIdentifier parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.ObjectIdentifier parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -352,7 +295,6 @@ public Builder clear() {
       super.clear();
       bitField0_ = 0;
       type_ = "";
-      id_ = "";
       key_ = "";
       return this;
     }
@@ -393,16 +335,44 @@ private void buildPartial0(com.aserto.directory.common.v2.ObjectIdentifier resul
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.id_ = id_;
-        to_bitField0_ |= 0x00000002;
-      }
-      if (((from_bitField0_ & 0x00000004) != 0)) {
         result.key_ = key_;
-        to_bitField0_ |= 0x00000004;
+        to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int bitField0_;
 
     private java.lang.Object type_ = "";
@@ -508,109 +478,6 @@ public Builder setTypeBytes(
       return this;
     }
 
-    private java.lang.Object id_ = "";
-    /**
-     * 
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * internal object id (uuid)
-     * 
- * - * optional string id = 2 [json_name = "id"]; - * @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(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - private java.lang.Object key_ = ""; /** *
@@ -621,7 +488,7 @@ public Builder setIdBytes(
      * @return Whether the key field is set.
      */
     public boolean hasKey() {
-      return ((bitField0_ & 0x00000004) != 0);
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -677,7 +544,7 @@ public Builder setKey(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       key_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -691,7 +558,7 @@ public Builder setKey(
      */
     public Builder clearKey() {
       key_ = getDefaultInstance().getKey();
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -709,7 +576,7 @@ public Builder setKeyBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       key_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/ObjectIdentifierOrBuilder.java
index 093193b..d685115 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectIdentifierOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectIdentifierOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface ObjectIdentifierOrBuilder extends
@@ -36,35 +37,6 @@ public interface ObjectIdentifierOrBuilder extends
   com.google.protobuf.ByteString
       getTypeBytes();
 
-  /**
-   * 
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * internal object id (uuid)
-   * 
- * - * optional string id = 2 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - /** *
    * external object key (cs-string)
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/ObjectOrBuilder.java
index 8cda5f2..bedfe18 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectOrBuilder.java
@@ -1,32 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface ObjectOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.Object)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * internal object id (uuid)
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * internal object id (uuid)
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - /** *
    * external object key (cs-string)
@@ -168,33 +149,6 @@ public interface ObjectOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
 
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - boolean hasDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - com.google.protobuf.Timestamp getDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); - /** *
    * object instance hash
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectType.java b/src/main/java/com/aserto/directory/common/v2/ObjectType.java
index 0601aef..7a39440 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectType.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectType.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -41,21 +42,7 @@ protected java.lang.Object newInstance(
             com.aserto.directory.common.v2.ObjectType.class, com.aserto.directory.common.v2.ObjectType.Builder.class);
   }
 
-  public static final int ID_FIELD_NUMBER = 1;
-  private int id_ = 0;
-  /**
-   * 
-   * internal object type id
-   * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - + private int bitField0_; public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -207,7 +194,7 @@ public int getStatus() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -245,7 +232,7 @@ public com.google.protobuf.StructOrBuilder getSchemaOrBuilder() {
    */
   @java.lang.Override
   public boolean hasCreatedAt() {
-    return createdAt_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -283,7 +270,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUpdatedAt() {
-    return updatedAt_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    * 
@@ -309,44 +296,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
     return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
   }
 
-  public static final int DELETED_AT_FIELD_NUMBER = 22;
-  private com.google.protobuf.Timestamp deletedAt_;
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - @java.lang.Override - public boolean hasDeletedAt() { - return deletedAt_ != null; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeletedAt() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - public static final int HASH_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; @@ -438,11 +387,13 @@ public static com.aserto.directory.common.v2.ObjectType parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.ObjectType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.ObjectType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -506,19 +457,26 @@ public static final class Builder extends // Construct using com.aserto.directory.common.v2.ObjectType.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - id_ = 0; name_ = ""; displayName_ = ""; isSubject_ = false; @@ -539,11 +497,6 @@ public Builder clear() { updatedAtBuilder_.dispose(); updatedAtBuilder_ = null; } - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } hash_ = ""; return this; } @@ -579,93 +532,78 @@ public com.aserto.directory.common.v2.ObjectType buildPartial() { private void buildPartial0(com.aserto.directory.common.v2.ObjectType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.isSubject_ = isSubject_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.ordinal_ = ordinal_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.status_ = status_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.updatedAt_ = updatedAtBuilder_ == null ? updatedAt_ : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.deletedAt_ = deletedAtBuilder_ == null - ? deletedAt_ - : deletedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.hash_ = hash_; } + result.bitField0_ |= to_bitField0_; } - private int bitField0_; - - private int id_ ; - /** - *
-     * internal object type id
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ @java.lang.Override - public int getId() { - return id_; + public Builder clone() { + return super.clone(); } - /** - *
-     * internal object type id
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * internal object type id
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -722,7 +660,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -736,7 +674,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -754,7 +692,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -814,7 +752,7 @@ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -828,7 +766,7 @@ public Builder setDisplayName( */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -846,7 +784,7 @@ public Builder setDisplayNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -876,7 +814,7 @@ public boolean getIsSubject() { public Builder setIsSubject(boolean value) { isSubject_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -889,7 +827,7 @@ public Builder setIsSubject(boolean value) { * @return This builder for chaining. */ public Builder clearIsSubject() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); isSubject_ = false; onChanged(); return this; @@ -920,7 +858,7 @@ public int getOrdinal() { public Builder setOrdinal(int value) { ordinal_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -933,7 +871,7 @@ public Builder setOrdinal(int value) { * @return This builder for chaining. */ public Builder clearOrdinal() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); ordinal_ = 0; onChanged(); return this; @@ -964,7 +902,7 @@ public int getStatus() { public Builder setStatus(int value) { status_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -977,7 +915,7 @@ public Builder setStatus(int value) { * @return This builder for chaining. */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; onChanged(); return this; @@ -995,7 +933,7 @@ public Builder clearStatus() { * @return Whether the schema field is set. */ public boolean hasSchema() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** *
@@ -1028,7 +966,7 @@ public Builder setSchema(com.google.protobuf.Struct value) {
       } else {
         schemaBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1046,7 +984,7 @@ public Builder setSchema(
       } else {
         schemaBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1059,7 +997,7 @@ public Builder setSchema(
      */
     public Builder mergeSchema(com.google.protobuf.Struct value) {
       if (schemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
+        if (((bitField0_ & 0x00000020) != 0) &&
           schema_ != null &&
           schema_ != com.google.protobuf.Struct.getDefaultInstance()) {
           getSchemaBuilder().mergeFrom(value);
@@ -1069,8 +1007,10 @@ public Builder mergeSchema(com.google.protobuf.Struct value) {
       } else {
         schemaBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000040;
-      onChanged();
+      if (schema_ != null) {
+        bitField0_ |= 0x00000020;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1081,7 +1021,7 @@ public Builder mergeSchema(com.google.protobuf.Struct value) {
      * .google.protobuf.Struct schema = 10 [json_name = "schema"];
      */
     public Builder clearSchema() {
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000020);
       schema_ = null;
       if (schemaBuilder_ != null) {
         schemaBuilder_.dispose();
@@ -1098,7 +1038,7 @@ public Builder clearSchema() {
      * .google.protobuf.Struct schema = 10 [json_name = "schema"];
      */
     public com.google.protobuf.Struct.Builder getSchemaBuilder() {
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return getSchemaFieldBuilder().getBuilder();
     }
@@ -1150,7 +1090,7 @@ public com.google.protobuf.StructOrBuilder getSchemaOrBuilder() {
      * @return Whether the createdAt field is set.
      */
     public boolean hasCreatedAt() {
-      return ((bitField0_ & 0x00000080) != 0);
+      return ((bitField0_ & 0x00000040) != 0);
     }
     /**
      * 
@@ -1183,7 +1123,7 @@ public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1201,7 +1141,7 @@ public Builder setCreatedAt(
       } else {
         createdAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1214,7 +1154,7 @@ public Builder setCreatedAt(
      */
     public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       if (createdAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
+        if (((bitField0_ & 0x00000040) != 0) &&
           createdAt_ != null &&
           createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCreatedAtBuilder().mergeFrom(value);
@@ -1224,8 +1164,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000080;
-      onChanged();
+      if (createdAt_ != null) {
+        bitField0_ |= 0x00000040;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1236,7 +1178,7 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public Builder clearCreatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000080);
+      bitField0_ = (bitField0_ & ~0x00000040);
       createdAt_ = null;
       if (createdAtBuilder_ != null) {
         createdAtBuilder_.dispose();
@@ -1253,7 +1195,7 @@ public Builder clearCreatedAt() {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return getCreatedAtFieldBuilder().getBuilder();
     }
@@ -1305,7 +1247,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
      * @return Whether the updatedAt field is set.
      */
     public boolean hasUpdatedAt() {
-      return ((bitField0_ & 0x00000100) != 0);
+      return ((bitField0_ & 0x00000080) != 0);
     }
     /**
      * 
@@ -1338,7 +1280,7 @@ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1356,7 +1298,7 @@ public Builder setUpdatedAt(
       } else {
         updatedAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1369,7 +1311,7 @@ public Builder setUpdatedAt(
      */
     public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       if (updatedAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
+        if (((bitField0_ & 0x00000080) != 0) &&
           updatedAt_ != null &&
           updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdatedAtBuilder().mergeFrom(value);
@@ -1379,8 +1321,10 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000100;
-      onChanged();
+      if (updatedAt_ != null) {
+        bitField0_ |= 0x00000080;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1391,7 +1335,7 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public Builder clearUpdatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000080);
       updatedAt_ = null;
       if (updatedAtBuilder_ != null) {
         updatedAtBuilder_.dispose();
@@ -1408,7 +1352,7 @@ public Builder clearUpdatedAt() {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return getUpdatedAtFieldBuilder().getBuilder();
     }
@@ -1448,161 +1392,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
       return updatedAtBuilder_;
     }
 
-    private com.google.protobuf.Timestamp deletedAt_;
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_;
-    /**
-     * 
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - public boolean hasDeletedAt() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - public com.google.protobuf.Timestamp getDeletedAt() { - if (deletedAtBuilder_ == null) { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } else { - return deletedAtBuilder_.getMessage(); - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deletedAt_ = value; - } else { - deletedAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deletedAtBuilder_ == null) { - deletedAt_ = builderForValue.build(); - } else { - deletedAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - deletedAt_ != null && - deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeletedAtBuilder().mergeFrom(value); - } else { - deletedAt_ = value; - } - } else { - deletedAtBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder clearDeletedAt() { - bitField0_ = (bitField0_ & ~0x00000200); - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getDeletedAtFieldBuilder().getBuilder(); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - if (deletedAtBuilder_ != null) { - return deletedAtBuilder_.getMessageOrBuilder(); - } else { - return deletedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeletedAtFieldBuilder() { - if (deletedAtBuilder_ == null) { - deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeletedAt(), - getParentForChildren(), - isClean()); - deletedAt_ = null; - } - return deletedAtBuilder_; - } - private java.lang.Object hash_ = ""; /** *
@@ -1658,7 +1447,7 @@ public Builder setHash(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       hash_ = value;
-      bitField0_ |= 0x00000400;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -1672,7 +1461,7 @@ public Builder setHash(
      */
     public Builder clearHash() {
       hash_ = getDefaultInstance().getHash();
-      bitField0_ = (bitField0_ & ~0x00000400);
+      bitField0_ = (bitField0_ & ~0x00000100);
       onChanged();
       return this;
     }
@@ -1690,7 +1479,7 @@ public Builder setHashBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       hash_ = value;
-      bitField0_ |= 0x00000400;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifier.java b/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifier.java
index b22a09a..5ff7651 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifier.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifier.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -44,33 +45,6 @@ protected java.lang.Object newInstance(
   }
 
   private int bitField0_;
-  public static final int ID_FIELD_NUMBER = 1;
-  private int id_ = 0;
-  /**
-   * 
-   * internal object type id
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * internal object type id
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -84,7 +58,7 @@ public int getId() { */ @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -174,11 +148,13 @@ public static com.aserto.directory.common.v2.ObjectTypeIdentifier parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.ObjectTypeIdentifier parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.ObjectTypeIdentifier parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -258,7 +234,6 @@ private Builder(
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      id_ = 0;
       name_ = "";
       return this;
     }
@@ -295,73 +270,45 @@ private void buildPartial0(com.aserto.directory.common.v2.ObjectTypeIdentifier r
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.id_ = id_;
-        to_bitField0_ |= 0x00000001;
-      }
-      if (((from_bitField0_ & 0x00000002) != 0)) {
         result.name_ = name_;
-        to_bitField0_ |= 0x00000002;
+        to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
     }
 
-    private int bitField0_;
-
-    private int id_ ;
-    /**
-     * 
-     * internal object type id
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); + public Builder clone() { + return super.clone(); } - /** - *
-     * internal object type id
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ @java.lang.Override - public int getId() { - return id_; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * internal object type id
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-     * internal object type id
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -373,7 +320,7 @@ public Builder clearId() { * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -429,7 +376,7 @@ public Builder setName(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -443,7 +390,7 @@ public Builder setName(
      */
     public Builder clearName() {
       name_ = getDefaultInstance().getName();
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -461,7 +408,7 @@ public Builder setNameBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifierOrBuilder.java
index 86be335..9c74503 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifierOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectTypeIdentifierOrBuilder.java
@@ -1,31 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface ObjectTypeIdentifierOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.ObjectTypeIdentifier)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * internal object type id
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-   * internal object type id
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ - int getId(); - /** *
    * object type name (unique, lc-string)
diff --git a/src/main/java/com/aserto/directory/common/v2/ObjectTypeOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/ObjectTypeOrBuilder.java
index 99beadf..85e11e0 100644
--- a/src/main/java/com/aserto/directory/common/v2/ObjectTypeOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/ObjectTypeOrBuilder.java
@@ -1,22 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface ObjectTypeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.ObjectType)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * internal object type id
-   * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ - int getId(); - /** *
    * object type name (unique, lc-string)
@@ -168,33 +159,6 @@ public interface ObjectTypeOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
 
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - boolean hasDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - com.google.protobuf.Timestamp getDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); - /** *
    * object instance hash
diff --git a/src/main/java/com/aserto/directory/common/v2/PaginationRequest.java b/src/main/java/com/aserto/directory/common/v2/PaginationRequest.java
index d0c84a9..2c2dfb9 100644
--- a/src/main/java/com/aserto/directory/common/v2/PaginationRequest.java
+++ b/src/main/java/com/aserto/directory/common/v2/PaginationRequest.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -149,11 +150,13 @@ public static com.aserto.directory.common.v2.PaginationRequest parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.PaginationRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.PaginationRequest parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -276,6 +279,38 @@ private void buildPartial0(com.aserto.directory.common.v2.PaginationRequest resu
       }
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int bitField0_;
 
     private int size_ ;
diff --git a/src/main/java/com/aserto/directory/common/v2/PaginationRequestOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/PaginationRequestOrBuilder.java
index 2a2b94d..e27875d 100644
--- a/src/main/java/com/aserto/directory/common/v2/PaginationRequestOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/PaginationRequestOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface PaginationRequestOrBuilder extends
diff --git a/src/main/java/com/aserto/directory/common/v2/PaginationResponse.java b/src/main/java/com/aserto/directory/common/v2/PaginationResponse.java
index b03d9b4..25c0f11 100644
--- a/src/main/java/com/aserto/directory/common/v2/PaginationResponse.java
+++ b/src/main/java/com/aserto/directory/common/v2/PaginationResponse.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -149,11 +150,13 @@ public static com.aserto.directory.common.v2.PaginationResponse parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.PaginationResponse parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.PaginationResponse parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -276,6 +279,38 @@ private void buildPartial0(com.aserto.directory.common.v2.PaginationResponse res
       }
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int bitField0_;
 
     private java.lang.Object nextToken_ = "";
diff --git a/src/main/java/com/aserto/directory/common/v2/PaginationResponseOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/PaginationResponseOrBuilder.java
index 2d32d68..1be6f0a 100644
--- a/src/main/java/com/aserto/directory/common/v2/PaginationResponseOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/PaginationResponseOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface PaginationResponseOrBuilder extends
diff --git a/src/main/java/com/aserto/directory/common/v2/Permission.java b/src/main/java/com/aserto/directory/common/v2/Permission.java
index 9519e1a..1b6236d 100644
--- a/src/main/java/com/aserto/directory/common/v2/Permission.java
+++ b/src/main/java/com/aserto/directory/common/v2/Permission.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -16,7 +17,6 @@ private Permission(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
   private Permission() {
-    id_ = "";
     name_ = "";
     displayName_ = "";
     hash_ = "";
@@ -42,53 +42,7 @@ protected java.lang.Object newInstance(
             com.aserto.directory.common.v2.Permission.class, com.aserto.directory.common.v2.Permission.Builder.class);
   }
 
-  public static final int ID_FIELD_NUMBER = 1;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object id_ = "";
-  /**
-   * 
-   * internal permission id
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-   * internal permission id
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - + private int bitField0_; public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -195,7 +149,7 @@ public java.lang.String getDisplayName() { */ @java.lang.Override public boolean hasCreatedAt() { - return createdAt_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -233,7 +187,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUpdatedAt() {
-    return updatedAt_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -259,44 +213,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
     return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
   }
 
-  public static final int DELETED_AT_FIELD_NUMBER = 22;
-  private com.google.protobuf.Timestamp deletedAt_;
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - @java.lang.Override - public boolean hasDeletedAt() { - return deletedAt_ != null; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeletedAt() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - public static final int HASH_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; @@ -388,11 +304,13 @@ public static com.aserto.directory.common.v2.Permission parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.Permission parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.Permission parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -456,19 +374,25 @@ public static final class Builder extends // Construct using com.aserto.directory.common.v2.Permission.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - id_ = ""; name_ = ""; displayName_ = ""; createdAt_ = null; @@ -481,11 +405,6 @@ public Builder clear() { updatedAtBuilder_.dispose(); updatedAtBuilder_ = null; } - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } hash_ = ""; return this; } @@ -521,127 +440,63 @@ public com.aserto.directory.common.v2.Permission buildPartial() { private void buildPartial0(com.aserto.directory.common.v2.Permission result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.updatedAt_ = updatedAtBuilder_ == null ? updatedAt_ : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deletedAt_ = deletedAtBuilder_ == null - ? deletedAt_ - : deletedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.hash_ = hash_; } + result.bitField0_ |= to_bitField0_; } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-     * internal permission id
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - *
-     * internal permission id
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * internal permission id
-     * 
- * - * string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-     * internal permission id
-     * 
- * - * string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-     * internal permission id
-     * 
- * - * string id = 1 [json_name = "id"]; - * @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(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -698,7 +553,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -712,7 +567,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -730,7 +585,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -790,7 +645,7 @@ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -804,7 +659,7 @@ public Builder setDisplayName( */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -822,7 +677,7 @@ public Builder setDisplayNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -839,7 +694,7 @@ public Builder setDisplayNameBytes( * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** *
@@ -872,7 +727,7 @@ public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -890,7 +745,7 @@ public Builder setCreatedAt(
       } else {
         createdAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -903,7 +758,7 @@ public Builder setCreatedAt(
      */
     public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       if (createdAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
+        if (((bitField0_ & 0x00000004) != 0) &&
           createdAt_ != null &&
           createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCreatedAtBuilder().mergeFrom(value);
@@ -913,8 +768,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
-      onChanged();
+      if (createdAt_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -925,7 +782,7 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public Builder clearCreatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000008);
+      bitField0_ = (bitField0_ & ~0x00000004);
       createdAt_ = null;
       if (createdAtBuilder_ != null) {
         createdAtBuilder_.dispose();
@@ -942,7 +799,7 @@ public Builder clearCreatedAt() {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000004;
       onChanged();
       return getCreatedAtFieldBuilder().getBuilder();
     }
@@ -994,7 +851,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
      * @return Whether the updatedAt field is set.
      */
     public boolean hasUpdatedAt() {
-      return ((bitField0_ & 0x00000010) != 0);
+      return ((bitField0_ & 0x00000008) != 0);
     }
     /**
      * 
@@ -1027,7 +884,7 @@ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1045,7 +902,7 @@ public Builder setUpdatedAt(
       } else {
         updatedAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1058,7 +915,7 @@ public Builder setUpdatedAt(
      */
     public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       if (updatedAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
+        if (((bitField0_ & 0x00000008) != 0) &&
           updatedAt_ != null &&
           updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdatedAtBuilder().mergeFrom(value);
@@ -1068,8 +925,10 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (updatedAt_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1080,7 +939,7 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public Builder clearUpdatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000008);
       updatedAt_ = null;
       if (updatedAtBuilder_ != null) {
         updatedAtBuilder_.dispose();
@@ -1097,7 +956,7 @@ public Builder clearUpdatedAt() {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000008;
       onChanged();
       return getUpdatedAtFieldBuilder().getBuilder();
     }
@@ -1137,161 +996,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
       return updatedAtBuilder_;
     }
 
-    private com.google.protobuf.Timestamp deletedAt_;
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_;
-    /**
-     * 
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - public boolean hasDeletedAt() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - public com.google.protobuf.Timestamp getDeletedAt() { - if (deletedAtBuilder_ == null) { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } else { - return deletedAtBuilder_.getMessage(); - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deletedAt_ = value; - } else { - deletedAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deletedAtBuilder_ == null) { - deletedAt_ = builderForValue.build(); - } else { - deletedAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - deletedAt_ != null && - deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeletedAtBuilder().mergeFrom(value); - } else { - deletedAt_ = value; - } - } else { - deletedAtBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder clearDeletedAt() { - bitField0_ = (bitField0_ & ~0x00000020); - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDeletedAtFieldBuilder().getBuilder(); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - if (deletedAtBuilder_ != null) { - return deletedAtBuilder_.getMessageOrBuilder(); - } else { - return deletedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeletedAtFieldBuilder() { - if (deletedAtBuilder_ == null) { - deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeletedAt(), - getParentForChildren(), - isClean()); - deletedAt_ = null; - } - return deletedAtBuilder_; - } - private java.lang.Object hash_ = ""; /** *
@@ -1347,7 +1051,7 @@ public Builder setHash(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       hash_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
@@ -1361,7 +1065,7 @@ public Builder setHash(
      */
     public Builder clearHash() {
       hash_ = getDefaultInstance().getHash();
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000010);
       onChanged();
       return this;
     }
@@ -1379,7 +1083,7 @@ public Builder setHashBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       hash_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/PermissionIdentifier.java b/src/main/java/com/aserto/directory/common/v2/PermissionIdentifier.java
index 734b09e..ab9d98e 100644
--- a/src/main/java/com/aserto/directory/common/v2/PermissionIdentifier.java
+++ b/src/main/java/com/aserto/directory/common/v2/PermissionIdentifier.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -20,7 +21,6 @@ private PermissionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder b
     super(builder);
   }
   private PermissionIdentifier() {
-    id_ = "";
     name_ = "";
   }
 
@@ -45,65 +45,6 @@ protected java.lang.Object newInstance(
   }
 
   private int bitField0_;
-  public static final int ID_FIELD_NUMBER = 1;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object id_ = "";
-  /**
-   * 
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -117,7 +58,7 @@ public java.lang.String getId() { */ @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -207,11 +148,13 @@ public static com.aserto.directory.common.v2.PermissionIdentifier parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.PermissionIdentifier parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.PermissionIdentifier parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -291,7 +234,6 @@ private Builder(
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      id_ = "";
       name_ = "";
       return this;
     }
@@ -328,120 +270,45 @@ private void buildPartial0(com.aserto.directory.common.v2.PermissionIdentifier r
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.id_ = id_;
-        to_bitField0_ |= 0x00000001;
-      }
-      if (((from_bitField0_ & 0x00000002) != 0)) {
         result.name_ = name_;
-        to_bitField0_ |= 0x00000002;
+        to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
     }
 
-    private int bitField0_;
-
-    private java.lang.Object id_ = "";
-    /**
-     * 
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - *
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - *
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - /** - *
-     * internal permission id
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @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(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -453,7 +320,7 @@ public Builder setIdBytes( * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -509,7 +376,7 @@ public Builder setName(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -523,7 +390,7 @@ public Builder setName(
      */
     public Builder clearName() {
       name_ = getDefaultInstance().getName();
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -541,7 +408,7 @@ public Builder setNameBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/PermissionIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/PermissionIdentifierOrBuilder.java
index 54ec9b1..b2b38a9 100644
--- a/src/main/java/com/aserto/directory/common/v2/PermissionIdentifierOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/PermissionIdentifierOrBuilder.java
@@ -1,41 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface PermissionIdentifierOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.PermissionIdentifier)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * internal permission id
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - /** *
    * permission name (unique, cs-string)
diff --git a/src/main/java/com/aserto/directory/common/v2/PermissionOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/PermissionOrBuilder.java
index 25e10ae..df1c530 100644
--- a/src/main/java/com/aserto/directory/common/v2/PermissionOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/PermissionOrBuilder.java
@@ -1,32 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface PermissionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.Permission)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * internal permission id
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * internal permission id
-   * 
- * - * string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - /** *
    * permission name (unique, cs-string)
@@ -121,33 +102,6 @@ public interface PermissionOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
 
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - boolean hasDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - com.google.protobuf.Timestamp getDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); - /** *
    * object instance hash
diff --git a/src/main/java/com/aserto/directory/common/v2/Relation.java b/src/main/java/com/aserto/directory/common/v2/Relation.java
index d55b235..922de3c 100644
--- a/src/main/java/com/aserto/directory/common/v2/Relation.java
+++ b/src/main/java/com/aserto/directory/common/v2/Relation.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -40,6 +41,7 @@ protected java.lang.Object newInstance(
             com.aserto.directory.common.v2.Relation.class, com.aserto.directory.common.v2.Relation.Builder.class);
   }
 
+  private int bitField0_;
   public static final int SUBJECT_FIELD_NUMBER = 1;
   private com.aserto.directory.common.v2.ObjectIdentifier subject_;
   /**
@@ -52,7 +54,7 @@ protected java.lang.Object newInstance(
    */
   @java.lang.Override
   public boolean hasSubject() {
-    return subject_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    * 
@@ -83,7 +85,7 @@ public com.aserto.directory.common.v2.ObjectIdentifierOrBuilder getSubjectOrBuil
   private volatile java.lang.Object relation_ = "";
   /**
    * 
-   * relation type ID
+   * relation type name
    * 
* * string relation = 2 [json_name = "relation"]; @@ -104,7 +106,7 @@ public java.lang.String getRelation() { } /** *
-   * relation type ID
+   * relation type name
    * 
* * string relation = 2 [json_name = "relation"]; @@ -137,7 +139,7 @@ public java.lang.String getRelation() { */ @java.lang.Override public boolean hasObject() { - return object_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** *
@@ -175,7 +177,7 @@ public com.aserto.directory.common.v2.ObjectIdentifierOrBuilder getObjectOrBuild
    */
   @java.lang.Override
   public boolean hasCreatedAt() {
-    return createdAt_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    * 
@@ -213,7 +215,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUpdatedAt() {
-    return updatedAt_ != null;
+    return ((bitField0_ & 0x00000008) != 0);
   }
   /**
    * 
@@ -239,44 +241,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
     return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
   }
 
-  public static final int DELETED_AT_FIELD_NUMBER = 22;
-  private com.google.protobuf.Timestamp deletedAt_;
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - @java.lang.Override - public boolean hasDeletedAt() { - return deletedAt_ != null; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeletedAt() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - public static final int HASH_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; @@ -368,11 +332,13 @@ public static com.aserto.directory.common.v2.Relation parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.Relation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -436,13 +402,22 @@ public static final class Builder extends // Construct using com.aserto.directory.common.v2.Relation.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubjectFieldBuilder(); + getObjectFieldBuilder(); + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -469,11 +444,6 @@ public Builder clear() { updatedAtBuilder_.dispose(); updatedAtBuilder_ = null; } - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } hash_ = ""; return this; } @@ -508,10 +478,12 @@ public com.aserto.directory.common.v2.Relation buildPartial() { private void buildPartial0(com.aserto.directory.common.v2.Relation result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.subject_ = subjectBuilder_ == null ? subject_ : subjectBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.relation_ = relation_; @@ -520,27 +492,58 @@ private void buildPartial0(com.aserto.directory.common.v2.Relation result) { result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.updatedAt_ = updatedAtBuilder_ == null ? updatedAt_ : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.deletedAt_ = deletedAtBuilder_ == null - ? deletedAt_ - : deletedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { result.hash_ = hash_; } + result.bitField0_ |= to_bitField0_; } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } private int bitField0_; private com.aserto.directory.common.v2.ObjectIdentifier subject_; @@ -629,8 +632,10 @@ public Builder mergeSubject(com.aserto.directory.common.v2.ObjectIdentifier valu } else { subjectBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (subject_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -701,7 +706,7 @@ public com.aserto.directory.common.v2.ObjectIdentifierOrBuilder getSubjectOrBuil private java.lang.Object relation_ = ""; /** *
-     * relation type ID
+     * relation type name
      * 
* * string relation = 2 [json_name = "relation"]; @@ -721,7 +726,7 @@ public java.lang.String getRelation() { } /** *
-     * relation type ID
+     * relation type name
      * 
* * string relation = 2 [json_name = "relation"]; @@ -742,7 +747,7 @@ public java.lang.String getRelation() { } /** *
-     * relation type ID
+     * relation type name
      * 
* * string relation = 2 [json_name = "relation"]; @@ -759,7 +764,7 @@ public Builder setRelation( } /** *
-     * relation type ID
+     * relation type name
      * 
* * string relation = 2 [json_name = "relation"]; @@ -773,7 +778,7 @@ public Builder clearRelation() { } /** *
-     * relation type ID
+     * relation type name
      * 
* * string relation = 2 [json_name = "relation"]; @@ -876,8 +881,10 @@ public Builder mergeObject(com.aserto.directory.common.v2.ObjectIdentifier value } else { objectBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (object_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1031,8 +1038,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { } else { createdAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (createdAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1186,8 +1195,10 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { } else { updatedAtBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (updatedAt_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -1255,161 +1266,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return updatedAtBuilder_; } - private com.google.protobuf.Timestamp deletedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_; - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - public boolean hasDeletedAt() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - public com.google.protobuf.Timestamp getDeletedAt() { - if (deletedAtBuilder_ == null) { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } else { - return deletedAtBuilder_.getMessage(); - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deletedAt_ = value; - } else { - deletedAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deletedAtBuilder_ == null) { - deletedAt_ = builderForValue.build(); - } else { - deletedAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - deletedAt_ != null && - deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeletedAtBuilder().mergeFrom(value); - } else { - deletedAt_ = value; - } - } else { - deletedAtBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder clearDeletedAt() { - bitField0_ = (bitField0_ & ~0x00000020); - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDeletedAtFieldBuilder().getBuilder(); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - if (deletedAtBuilder_ != null) { - return deletedAtBuilder_.getMessageOrBuilder(); - } else { - return deletedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeletedAtFieldBuilder() { - if (deletedAtBuilder_ == null) { - deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeletedAt(), - getParentForChildren(), - isClean()); - deletedAt_ = null; - } - return deletedAtBuilder_; - } - private java.lang.Object hash_ = ""; /** *
@@ -1465,7 +1321,7 @@ public Builder setHash(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       hash_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1479,7 +1335,7 @@ public Builder setHash(
      */
     public Builder clearHash() {
       hash_ = getDefaultInstance().getHash();
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000020);
       onChanged();
       return this;
     }
@@ -1497,7 +1353,7 @@ public Builder setHashBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       hash_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationIdentifier.java b/src/main/java/com/aserto/directory/common/v2/RelationIdentifier.java
index 4611990..9add717 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationIdentifier.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationIdentifier.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -42,6 +43,7 @@ protected java.lang.Object newInstance(
             com.aserto.directory.common.v2.RelationIdentifier.class, com.aserto.directory.common.v2.RelationIdentifier.Builder.class);
   }
 
+  private int bitField0_;
   public static final int SUBJECT_FIELD_NUMBER = 1;
   private com.aserto.directory.common.v2.ObjectIdentifier subject_;
   /**
@@ -54,7 +56,7 @@ protected java.lang.Object newInstance(
    */
   @java.lang.Override
   public boolean hasSubject() {
-    return subject_ != null;
+    return ((bitField0_ & 0x00000001) != 0);
   }
   /**
    * 
@@ -92,7 +94,7 @@ public com.aserto.directory.common.v2.ObjectIdentifierOrBuilder getSubjectOrBuil
    */
   @java.lang.Override
   public boolean hasRelation() {
-    return relation_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -130,7 +132,7 @@ public com.aserto.directory.common.v2.RelationTypeIdentifierOrBuilder getRelatio
    */
   @java.lang.Override
   public boolean hasObject() {
-    return object_ != null;
+    return ((bitField0_ & 0x00000004) != 0);
   }
   /**
    * 
@@ -200,11 +202,13 @@ public static com.aserto.directory.common.v2.RelationIdentifier parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.RelationIdentifier parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.RelationIdentifier parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -272,13 +276,21 @@ public static final class Builder extends
 
     // Construct using com.aserto.directory.common.v2.RelationIdentifier.newBuilder()
     private Builder() {
-
+      maybeForceBuilderInitialization();
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getSubjectFieldBuilder();
+        getRelationFieldBuilder();
+        getObjectFieldBuilder();
+      }
     }
     @java.lang.Override
     public Builder clear() {
@@ -332,23 +344,60 @@ public com.aserto.directory.common.v2.RelationIdentifier buildPartial() {
 
     private void buildPartial0(com.aserto.directory.common.v2.RelationIdentifier result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subject_ = subjectBuilder_ == null
             ? subject_
             : subjectBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.relation_ = relationBuilder_ == null
             ? relation_
             : relationBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.object_ = objectBuilder_ == null
             ? object_
             : objectBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int bitField0_;
 
     private com.aserto.directory.common.v2.ObjectIdentifier subject_;
@@ -437,8 +486,10 @@ public Builder mergeSubject(com.aserto.directory.common.v2.ObjectIdentifier valu
       } else {
         subjectBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (subject_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -592,8 +643,10 @@ public Builder mergeRelation(com.aserto.directory.common.v2.RelationTypeIdentifi
       } else {
         relationBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (relation_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -747,8 +800,10 @@ public Builder mergeObject(com.aserto.directory.common.v2.ObjectIdentifier value
       } else {
         objectBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
-      onChanged();
+      if (object_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/RelationIdentifierOrBuilder.java
index 52757a7..0280676 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationIdentifierOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationIdentifierOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface RelationIdentifierOrBuilder extends
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/RelationOrBuilder.java
index 331919b..5cf8e07 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface RelationOrBuilder extends
@@ -36,7 +37,7 @@ public interface RelationOrBuilder extends
 
   /**
    * 
-   * relation type ID
+   * relation type name
    * 
* * string relation = 2 [json_name = "relation"]; @@ -45,7 +46,7 @@ public interface RelationOrBuilder extends java.lang.String getRelation(); /** *
-   * relation type ID
+   * relation type name
    * 
* * string relation = 2 [json_name = "relation"]; @@ -135,33 +136,6 @@ public interface RelationOrBuilder extends */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - boolean hasDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - com.google.protobuf.Timestamp getDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); - /** *
    * object instance hash
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationType.java b/src/main/java/com/aserto/directory/common/v2/RelationType.java
index a92bc4d..fce047f 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationType.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationType.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -46,21 +47,7 @@ protected java.lang.Object newInstance(
             com.aserto.directory.common.v2.RelationType.class, com.aserto.directory.common.v2.RelationType.Builder.class);
   }
 
-  public static final int ID_FIELD_NUMBER = 1;
-  private int id_ = 0;
-  /**
-   * 
-   * relation type id selector
-   * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - + private int bitField0_; public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -350,7 +337,7 @@ public java.lang.String getPermissions(int index) { */ @java.lang.Override public boolean hasCreatedAt() { - return createdAt_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -388,7 +375,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
    */
   @java.lang.Override
   public boolean hasUpdatedAt() {
-    return updatedAt_ != null;
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -414,44 +401,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
     return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
   }
 
-  public static final int DELETED_AT_FIELD_NUMBER = 22;
-  private com.google.protobuf.Timestamp deletedAt_;
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - @java.lang.Override - public boolean hasDeletedAt() { - return deletedAt_ != null; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeletedAt() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - public static final int HASH_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; @@ -543,11 +492,13 @@ public static com.aserto.directory.common.v2.RelationType parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.aserto.directory.common.v2.RelationType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.aserto.directory.common.v2.RelationType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -611,19 +562,25 @@ public static final class Builder extends // Construct using com.aserto.directory.common.v2.RelationType.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - id_ = 0; name_ = ""; objectType_ = ""; displayName_ = ""; @@ -643,11 +600,6 @@ public Builder clear() { updatedAtBuilder_.dispose(); updatedAtBuilder_ = null; } - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } hash_ = ""; return this; } @@ -683,96 +635,80 @@ public com.aserto.directory.common.v2.RelationType buildPartial() { private void buildPartial0(com.aserto.directory.common.v2.RelationType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.objectType_ = objectType_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.ordinal_ = ordinal_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.status_ = status_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { unions_.makeImmutable(); result.unions_ = unions_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { permissions_.makeImmutable(); result.permissions_ = permissions_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.updatedAt_ = updatedAtBuilder_ == null ? updatedAt_ : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.deletedAt_ = deletedAtBuilder_ == null - ? deletedAt_ - : deletedAtBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.hash_ = hash_; } + result.bitField0_ |= to_bitField0_; } - private int bitField0_; - - private int id_ ; - /** - *
-     * relation type id selector
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ @java.lang.Override - public int getId() { - return id_; + public Builder clone() { + return super.clone(); } - /** - *
-     * relation type id selector
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * relation type id selector
-     * 
- * - * int32 id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -829,7 +765,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -843,7 +779,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -861,7 +797,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -921,7 +857,7 @@ public Builder setObjectType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } objectType_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -935,7 +871,7 @@ public Builder setObjectType( */ public Builder clearObjectType() { objectType_ = getDefaultInstance().getObjectType(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -953,7 +889,7 @@ public Builder setObjectTypeBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectType_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1013,7 +949,7 @@ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1027,7 +963,7 @@ public Builder setDisplayName( */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1045,7 +981,7 @@ public Builder setDisplayNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1075,7 +1011,7 @@ public int getOrdinal() { public Builder setOrdinal(int value) { ordinal_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1088,7 +1024,7 @@ public Builder setOrdinal(int value) { * @return This builder for chaining. */ public Builder clearOrdinal() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); ordinal_ = 0; onChanged(); return this; @@ -1119,7 +1055,7 @@ public int getStatus() { public Builder setStatus(int value) { status_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1132,7 +1068,7 @@ public Builder setStatus(int value) { * @return This builder for chaining. */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; onChanged(); return this; @@ -1144,7 +1080,7 @@ private void ensureUnionsIsMutable() { if (!unions_.isModifiable()) { unions_ = new com.google.protobuf.LazyStringArrayList(unions_); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; } /** *
@@ -1210,7 +1146,7 @@ public Builder setUnions(
       if (value == null) { throw new NullPointerException(); }
       ensureUnionsIsMutable();
       unions_.set(index, value);
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1228,7 +1164,7 @@ public Builder addUnions(
       if (value == null) { throw new NullPointerException(); }
       ensureUnionsIsMutable();
       unions_.add(value);
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1246,7 +1182,7 @@ public Builder addAllUnions(
       ensureUnionsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(
           values, unions_);
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1261,7 +1197,7 @@ public Builder addAllUnions(
     public Builder clearUnions() {
       unions_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-      bitField0_ = (bitField0_ & ~0x00000040);;
+      bitField0_ = (bitField0_ & ~0x00000020);;
       onChanged();
       return this;
     }
@@ -1280,7 +1216,7 @@ public Builder addUnionsBytes(
       checkByteStringIsUtf8(value);
       ensureUnionsIsMutable();
       unions_.add(value);
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -1291,7 +1227,7 @@ private void ensurePermissionsIsMutable() {
       if (!permissions_.isModifiable()) {
         permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_);
       }
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
     }
     /**
      * 
@@ -1357,7 +1293,7 @@ public Builder setPermissions(
       if (value == null) { throw new NullPointerException(); }
       ensurePermissionsIsMutable();
       permissions_.set(index, value);
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1375,7 +1311,7 @@ public Builder addPermissions(
       if (value == null) { throw new NullPointerException(); }
       ensurePermissionsIsMutable();
       permissions_.add(value);
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1393,7 +1329,7 @@ public Builder addAllPermissions(
       ensurePermissionsIsMutable();
       com.google.protobuf.AbstractMessageLite.Builder.addAll(
           values, permissions_);
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1408,7 +1344,7 @@ public Builder addAllPermissions(
     public Builder clearPermissions() {
       permissions_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-      bitField0_ = (bitField0_ & ~0x00000080);;
+      bitField0_ = (bitField0_ & ~0x00000040);;
       onChanged();
       return this;
     }
@@ -1427,7 +1363,7 @@ public Builder addPermissionsBytes(
       checkByteStringIsUtf8(value);
       ensurePermissionsIsMutable();
       permissions_.add(value);
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -1444,7 +1380,7 @@ public Builder addPermissionsBytes(
      * @return Whether the createdAt field is set.
      */
     public boolean hasCreatedAt() {
-      return ((bitField0_ & 0x00000100) != 0);
+      return ((bitField0_ & 0x00000080) != 0);
     }
     /**
      * 
@@ -1477,7 +1413,7 @@ public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1495,7 +1431,7 @@ public Builder setCreatedAt(
       } else {
         createdAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -1508,7 +1444,7 @@ public Builder setCreatedAt(
      */
     public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       if (createdAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
+        if (((bitField0_ & 0x00000080) != 0) &&
           createdAt_ != null &&
           createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCreatedAtBuilder().mergeFrom(value);
@@ -1518,8 +1454,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
       } else {
         createdAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000100;
-      onChanged();
+      if (createdAt_ != null) {
+        bitField0_ |= 0x00000080;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1530,7 +1468,7 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public Builder clearCreatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000080);
       createdAt_ = null;
       if (createdAtBuilder_ != null) {
         createdAtBuilder_.dispose();
@@ -1547,7 +1485,7 @@ public Builder clearCreatedAt() {
      * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt"];
      */
     public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000080;
       onChanged();
       return getCreatedAtFieldBuilder().getBuilder();
     }
@@ -1599,7 +1537,7 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
      * @return Whether the updatedAt field is set.
      */
     public boolean hasUpdatedAt() {
-      return ((bitField0_ & 0x00000200) != 0);
+      return ((bitField0_ & 0x00000100) != 0);
     }
     /**
      * 
@@ -1632,7 +1570,7 @@ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -1650,7 +1588,7 @@ public Builder setUpdatedAt(
       } else {
         updatedAtBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -1663,7 +1601,7 @@ public Builder setUpdatedAt(
      */
     public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       if (updatedAtBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
+        if (((bitField0_ & 0x00000100) != 0) &&
           updatedAt_ != null &&
           updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getUpdatedAtBuilder().mergeFrom(value);
@@ -1673,8 +1611,10 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
       } else {
         updatedAtBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000200;
-      onChanged();
+      if (updatedAt_ != null) {
+        bitField0_ |= 0x00000100;
+        onChanged();
+      }
       return this;
     }
     /**
@@ -1685,7 +1625,7 @@ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public Builder clearUpdatedAt() {
-      bitField0_ = (bitField0_ & ~0x00000200);
+      bitField0_ = (bitField0_ & ~0x00000100);
       updatedAt_ = null;
       if (updatedAtBuilder_ != null) {
         updatedAtBuilder_.dispose();
@@ -1702,7 +1642,7 @@ public Builder clearUpdatedAt() {
      * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt"];
      */
     public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000100;
       onChanged();
       return getUpdatedAtFieldBuilder().getBuilder();
     }
@@ -1742,161 +1682,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
       return updatedAtBuilder_;
     }
 
-    private com.google.protobuf.Timestamp deletedAt_;
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deletedAtBuilder_;
-    /**
-     * 
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - public boolean hasDeletedAt() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - public com.google.protobuf.Timestamp getDeletedAt() { - if (deletedAtBuilder_ == null) { - return deletedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } else { - return deletedAtBuilder_.getMessage(); - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deletedAt_ = value; - } else { - deletedAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder setDeletedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deletedAtBuilder_ == null) { - deletedAt_ = builderForValue.build(); - } else { - deletedAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder mergeDeletedAt(com.google.protobuf.Timestamp value) { - if (deletedAtBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - deletedAt_ != null && - deletedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeletedAtBuilder().mergeFrom(value); - } else { - deletedAt_ = value; - } - } else { - deletedAtBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public Builder clearDeletedAt() { - bitField0_ = (bitField0_ & ~0x00000400); - deletedAt_ = null; - if (deletedAtBuilder_ != null) { - deletedAtBuilder_.dispose(); - deletedAtBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getDeletedAtFieldBuilder().getBuilder(); - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder() { - if (deletedAtBuilder_ != null) { - return deletedAtBuilder_.getMessageOrBuilder(); - } else { - return deletedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deletedAt_; - } - } - /** - *
-     * deleted timestamp (UTC)
-     * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeletedAtFieldBuilder() { - if (deletedAtBuilder_ == null) { - deletedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeletedAt(), - getParentForChildren(), - isClean()); - deletedAt_ = null; - } - return deletedAtBuilder_; - } - private java.lang.Object hash_ = ""; /** *
@@ -1952,7 +1737,7 @@ public Builder setHash(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       hash_ = value;
-      bitField0_ |= 0x00000800;
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -1966,7 +1751,7 @@ public Builder setHash(
      */
     public Builder clearHash() {
       hash_ = getDefaultInstance().getHash();
-      bitField0_ = (bitField0_ & ~0x00000800);
+      bitField0_ = (bitField0_ & ~0x00000200);
       onChanged();
       return this;
     }
@@ -1984,7 +1769,7 @@ public Builder setHashBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       hash_ = value;
-      bitField0_ |= 0x00000800;
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifier.java b/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifier.java
index bb777ec..b8cf768 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifier.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifier.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 /**
@@ -45,33 +46,6 @@ protected java.lang.Object newInstance(
   }
 
   private int bitField0_;
-  public static final int ID_FIELD_NUMBER = 1;
-  private int id_ = 0;
-  /**
-   * 
-   * relation type id selector
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * relation type id selector
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -85,7 +59,7 @@ public int getId() { */ @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -144,7 +118,7 @@ public java.lang.String getName() {
    */
   @java.lang.Override
   public boolean hasObjectType() {
-    return ((bitField0_ & 0x00000004) != 0);
+    return ((bitField0_ & 0x00000002) != 0);
   }
   /**
    * 
@@ -234,11 +208,13 @@ public static com.aserto.directory.common.v2.RelationTypeIdentifier parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.common.v2.RelationTypeIdentifier parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.common.v2.RelationTypeIdentifier parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -318,7 +294,6 @@ private Builder(
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      id_ = 0;
       name_ = "";
       objectType_ = "";
       return this;
@@ -356,77 +331,49 @@ private void buildPartial0(com.aserto.directory.common.v2.RelationTypeIdentifier
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.id_ = id_;
+        result.name_ = name_;
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.name_ = name_;
-        to_bitField0_ |= 0x00000002;
-      }
-      if (((from_bitField0_ & 0x00000004) != 0)) {
         result.objectType_ = objectType_;
-        to_bitField0_ |= 0x00000004;
+        to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
     }
 
-    private int bitField0_;
-
-    private int id_ ;
-    /**
-     * 
-     * relation type id selector
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); + public Builder clone() { + return super.clone(); } - /** - *
-     * relation type id selector
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ @java.lang.Override - public int getId() { - return id_; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - *
-     * relation type id selector
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - *
-     * relation type id selector
-     * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -438,7 +385,7 @@ public Builder clearId() { * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -494,7 +441,7 @@ public Builder setName(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -508,7 +455,7 @@ public Builder setName(
      */
     public Builder clearName() {
       name_ = getDefaultInstance().getName();
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -526,7 +473,7 @@ public Builder setNameBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -541,7 +488,7 @@ public Builder setNameBytes(
      * @return Whether the objectType field is set.
      */
     public boolean hasObjectType() {
-      return ((bitField0_ & 0x00000004) != 0);
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -597,7 +544,7 @@ public Builder setObjectType(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       objectType_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -611,7 +558,7 @@ public Builder setObjectType(
      */
     public Builder clearObjectType() {
       objectType_ = getDefaultInstance().getObjectType();
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -629,7 +576,7 @@ public Builder setObjectTypeBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       objectType_ = value;
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifierOrBuilder.java
index 5efba07..b0469b7 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifierOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationTypeIdentifierOrBuilder.java
@@ -1,31 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface RelationTypeIdentifierOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.RelationTypeIdentifier)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * relation type id selector
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-   * relation type id selector
-   * 
- * - * optional int32 id = 1 [json_name = "id"]; - * @return The id. - */ - int getId(); - /** *
    * relation type name selector
diff --git a/src/main/java/com/aserto/directory/common/v2/RelationTypeOrBuilder.java b/src/main/java/com/aserto/directory/common/v2/RelationTypeOrBuilder.java
index d4a5f7c..ce32a63 100644
--- a/src/main/java/com/aserto/directory/common/v2/RelationTypeOrBuilder.java
+++ b/src/main/java/com/aserto/directory/common/v2/RelationTypeOrBuilder.java
@@ -1,22 +1,13 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/common/v2/common.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.common.v2;
 
 public interface RelationTypeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:aserto.directory.common.v2.RelationType)
     com.google.protobuf.MessageOrBuilder {
 
-  /**
-   * 
-   * relation type id selector
-   * 
- * - * int32 id = 1 [json_name = "id"]; - * @return The id. - */ - int getId(); - /** *
    * relation type name selector
@@ -233,33 +224,6 @@ public interface RelationTypeOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
 
-  /**
-   * 
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return Whether the deletedAt field is set. - */ - boolean hasDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - * @return The deletedAt. - */ - com.google.protobuf.Timestamp getDeletedAt(); - /** - *
-   * deleted timestamp (UTC)
-   * 
- * - * .google.protobuf.Timestamp deleted_at = 22 [json_name = "deletedAt"]; - */ - com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder(); - /** *
    * object instance hash
diff --git a/src/main/java/com/aserto/directory/common/v3/CommonProto.java b/src/main/java/com/aserto/directory/common/v3/CommonProto.java
new file mode 100644
index 0000000..a2746e3
--- /dev/null
+++ b/src/main/java/com/aserto/directory/common/v3/CommonProto.java
@@ -0,0 +1,221 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: aserto/directory/common/v3/common.proto
+
+// Protobuf Java Version: 3.25.0
+package com.aserto.directory.common.v3;
+
+public final class CommonProto {
+  private CommonProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_Object_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_Object_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_Relation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_Relation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_ObjectDependency_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_ObjectDependency_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_ObjectIdentifier_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_PaginationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_PaginationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_PaginationResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_PaginationResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_aserto_directory_common_v3_ObjectType_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_aserto_directory_common_v3_ObjectType_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\'aserto/directory/common/v3/common.prot" +
+      "o\022\032aserto.directory.common.v3\032\037google/ap" +
+      "i/field_behavior.proto\032\034google/protobuf/" +
+      "struct.proto\032\037google/protobuf/timestamp." +
+      "proto\032\033buf/validate/validate.proto\"\212\005\n\006O" +
+      "bject\022\367\001\n\004type\030\001 \001(\tB\342\001\342A\001\002\272H\332\001r\002\030@\272\001\317\001\n" +
+      "\013object.type\022\213\001must be all lowercase, st" +
+      "art with a letter, can contain letters, " +
+      "digits, dots, underscores, and dashes, a" +
+      "nd must end with a letter or digit\0322this" +
+      ".matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0" +
+      "-9]$\')\310\001\001R\004type\022\201\001\n\002id\030\002 \001(\tBq\342A\001\002\272Hjr\003\030" +
+      "\200\002\272\001_\n\tobject.id\0228cannot contain any spa" +
+      "ces or other whitespace characters\032\030this" +
+      ".matches(\'^[\\\\S]+$\')\310\001\001R\002id\022\'\n\014display_n" +
+      "ame\030\003 \001(\tB\004\342A\001\001R\013displayName\022=\n\nproperti" +
+      "es\030\004 \001(\0132\027.google.protobuf.StructB\004\342A\001\001R" +
+      "\nproperties\022?\n\ncreated_at\030\024 \001(\0132\032.google" +
+      ".protobuf.TimestampB\004\342A\001\003R\tcreatedAt\022?\n\n" +
+      "updated_at\030\025 \001(\0132\032.google.protobuf.Times" +
+      "tampB\004\342A\001\003R\tupdatedAt\022\030\n\004etag\030\027 \001(\tB\004\342A\001" +
+      "\001R\004etag\"\247\014\n\010Relation\022\215\002\n\013object_type\030\001 \001" +
+      "(\tB\353\001\342A\001\002\272H\343\001r\002\030@\272\001\330\001\n\024relation.object_t" +
+      "ype\022\213\001must be all lowercase, start with " +
+      "a letter, can contain letters, digits, d" +
+      "ots, underscores, and dashes, and must e" +
+      "nd with a letter or digit\0322this.matches(" +
+      "\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\310\001\001" +
+      "R\nobjectType\022\227\001\n\tobject_id\030\002 \001(\tBz\342A\001\002\272H" +
+      "sr\003\030\200\002\272\001h\n\022relation.object_id\0228cannot co" +
+      "ntain any spaces or other whitespace cha" +
+      "racters\032\030this.matches(\'^[\\\\S]+$\')\310\001\001R\010ob" +
+      "jectId\022\205\002\n\010relation\030\003 \001(\tB\350\001\342A\001\002\272H\340\001r\002\030@" +
+      "\272\001\325\001\n\021relation.relation\022\213\001must be all lo" +
+      "wercase, start with a letter, can contai" +
+      "n letters, digits, dots, underscores, an" +
+      "d dashes, and must end with a letter or " +
+      "digit\0322this.matches(\'^[a-z][a-z0-9\\\\._-]" +
+      "{1,62}[a-z0-9]$\')\310\001\001R\010relation\022\220\002\n\014subje" +
+      "ct_type\030\004 \001(\tB\354\001\342A\001\002\272H\344\001r\002\030@\272\001\331\001\n\025relati" +
+      "on.subject_type\022\213\001must be all lowercase," +
+      " start with a letter, can contain letter" +
+      "s, digits, dots, underscores, and dashes" +
+      ", and must end with a letter or digit\0322t" +
+      "his.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a" +
+      "-z0-9]$\')\310\001\001R\013subjectType\022\232\001\n\nsubject_id" +
+      "\030\005 \001(\tB{\342A\001\002\272Htr\003\030\200\002\272\001i\n\023relation.subjec" +
+      "t_id\0228cannot contain any spaces or other" +
+      " whitespace characters\032\030this.matches(\'^[" +
+      "\\\\S]+$\')\310\001\001R\tsubjectId\022\234\002\n\020subject_relat" +
+      "ion\030\006 \001(\tB\360\001\342A\001\001\272H\350\001r\002\030@\272\001\335\001\n\031relation.s" +
+      "ubject_relation\022\213\001must be all lowercase," +
+      " start with a letter, can contain letter" +
+      "s, digits, dots, underscores, and dashes" +
+      ", and must end with a letter or digit\0322t" +
+      "his.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a" +
+      "-z0-9]$\')\320\001\001R\017subjectRelation\022?\n\ncreated" +
+      "_at\030\024 \001(\0132\032.google.protobuf.TimestampB\004\342" +
+      "A\001\003R\tcreatedAt\022?\n\nupdated_at\030\025 \001(\0132\032.goo" +
+      "gle.protobuf.TimestampB\004\342A\001\003R\tupdatedAt\022" +
+      "\030\n\004etag\030\027 \001(\tB\004\342A\001\001R\004etag\"\324\002\n\020ObjectDepe" +
+      "ndency\022%\n\013object_type\030\001 \001(\tB\004\342A\001\003R\nobjec" +
+      "tType\022!\n\tobject_id\030\002 \001(\tB\004\342A\001\003R\010objectId" +
+      "\022 \n\010relation\030\003 \001(\tB\004\342A\001\003R\010relation\022\'\n\014su" +
+      "bject_type\030\004 \001(\tB\004\342A\001\003R\013subjectType\022#\n\ns" +
+      "ubject_id\030\005 \001(\tB\004\342A\001\003R\tsubjectId\022/\n\020subj" +
+      "ect_relation\030\006 \001(\tB\004\342A\001\003R\017subjectRelatio" +
+      "n\022\032\n\005depth\030\007 \001(\005B\004\342A\001\003R\005depth\022\037\n\010is_cycl" +
+      "e\030\010 \001(\010B\004\342A\001\003R\007isCycle\022\030\n\004path\030\t \003(\tB\004\342A" +
+      "\001\003R\004path\"\317\003\n\020ObjectIdentifier\022\226\002\n\013object" +
+      "_type\030\001 \001(\tB\364\001\342A\001\002\272H\354\001r\002\030@\272\001\341\001\n\035object_i" +
+      "dentifier.object_type\022\213\001must be all lowe" +
+      "rcase, start with a letter, can contain " +
+      "letters, digits, dots, underscores, and " +
+      "dashes, and must end with a letter or di" +
+      "git\0322this.matches(\'^[a-z][a-z0-9\\\\._-]{1" +
+      ",62}[a-z0-9]$\')\310\001\001R\nobjectType\022\241\001\n\tobjec" +
+      "t_id\030\002 \001(\tB\203\001\342A\001\002\272H|r\003\030\200\002\272\001q\n\033object_ide" +
+      "ntifier.object_id\0228cannot contain any sp" +
+      "aces or other whitespace characters\032\030thi" +
+      "s.matches(\'^[\\\\S]+$\')\310\001\001R\010objectId\"R\n\021Pa" +
+      "ginationRequest\022!\n\004size\030\001 \001(\005B\r\342A\001\001\272H\006\032\004" +
+      "\030d(\001R\004size\022\032\n\005token\030\002 \001(\tB\004\342A\001\001R\005token\"9" +
+      "\n\022PaginationResponse\022#\n\nnext_token\030\001 \001(\t" +
+      "B\004\342A\001\003R\tnextToken\"r\n\nObjectType\022\030\n\004name\030" +
+      "\001 \001(\tB\004\342A\001\002R\004name\022\"\n\trelations\030\002 \003(\tB\004\342A" +
+      "\001\001R\trelations\022&\n\013permissions\030\003 \003(\tB\004\342A\001\001" +
+      "R\013permissionsB\205\002\n\036com.aserto.directory.c" +
+      "ommon.v3B\013CommonProtoH\002P\001ZDgithub.com/as" +
+      "erto-dev/go-directory/aserto/directory/c" +
+      "ommon/v3;common\370\001\000\242\002\003ADC\252\002\032Aserto.Direct" +
+      "ory.Common.V3\312\002\033Aserto\\Directory_\\Common" +
+      "\\V3\342\002\'Aserto\\Directory_\\Common\\V3\\GPBMet" +
+      "adata\352\002\035Aserto::Directory::Common::V3b\006p" +
+      "roto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.buf.validate.ValidateProto.getDescriptor(),
+        });
+    internal_static_aserto_directory_common_v3_Object_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_aserto_directory_common_v3_Object_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_Object_descriptor,
+        new java.lang.String[] { "Type", "Id", "DisplayName", "Properties", "CreatedAt", "UpdatedAt", "Etag", });
+    internal_static_aserto_directory_common_v3_Relation_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_aserto_directory_common_v3_Relation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_Relation_descriptor,
+        new java.lang.String[] { "ObjectType", "ObjectId", "Relation", "SubjectType", "SubjectId", "SubjectRelation", "CreatedAt", "UpdatedAt", "Etag", });
+    internal_static_aserto_directory_common_v3_ObjectDependency_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_aserto_directory_common_v3_ObjectDependency_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_ObjectDependency_descriptor,
+        new java.lang.String[] { "ObjectType", "ObjectId", "Relation", "SubjectType", "SubjectId", "SubjectRelation", "Depth", "IsCycle", "Path", });
+    internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_aserto_directory_common_v3_ObjectIdentifier_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor,
+        new java.lang.String[] { "ObjectType", "ObjectId", });
+    internal_static_aserto_directory_common_v3_PaginationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_aserto_directory_common_v3_PaginationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_PaginationRequest_descriptor,
+        new java.lang.String[] { "Size", "Token", });
+    internal_static_aserto_directory_common_v3_PaginationResponse_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_aserto_directory_common_v3_PaginationResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_PaginationResponse_descriptor,
+        new java.lang.String[] { "NextToken", });
+    internal_static_aserto_directory_common_v3_ObjectType_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_aserto_directory_common_v3_ObjectType_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_aserto_directory_common_v3_ObjectType_descriptor,
+        new java.lang.String[] { "Name", "Relations", "Permissions", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.buf.validate.ValidateProto.field);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.buf.validate.ValidateProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/com/aserto/directory/common/v3/Object.java b/src/main/java/com/aserto/directory/common/v3/Object.java
new file mode 100644
index 0000000..2dba5b6
--- /dev/null
+++ b/src/main/java/com/aserto/directory/common/v3/Object.java
@@ -0,0 +1,1504 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: aserto/directory/common/v3/common.proto
+
+// Protobuf Java Version: 3.25.0
+package com.aserto.directory.common.v3;
+
+/**
+ * Protobuf type {@code aserto.directory.common.v3.Object}
+ */
+public final class Object extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.Object)
+    ObjectOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use Object.newBuilder() to construct.
+  private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private Object() {
+    type_ = "";
+    id_ = "";
+    displayName_ = "";
+    etag_ = "";
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new Object();
+  }
+
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Object_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Object_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.aserto.directory.common.v3.Object.class, com.aserto.directory.common.v3.Object.Builder.class);
+  }
+
+  private int bitField0_;
+  public static final int TYPE_FIELD_NUMBER = 1;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object type_ = "";
+  /**
+   * 
+   * object type name
+   * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + *
+   * object type name
+   * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+   * external object identifier (cs-string, no spaces or tabs)
+   * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * external object identifier (cs-string, no spaces or tabs)
+   * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+   * display name object
+   * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+   * display name object
+   * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 4; + private com.google.protobuf.Struct properties_; + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return The properties. + */ + @java.lang.Override + public com.google.protobuf.Struct getProperties() { + return properties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : properties_; + } + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : properties_; + } + + public static final int CREATED_AT_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int UPDATED_AT_FIELD_NUMBER = 21; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + @java.lang.Override + public boolean hasUpdatedAt() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + + public static final int ETAG_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static com.aserto.directory.common.v3.Object parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Object parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Object parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Object parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Object parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Object parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Object parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.Object parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.Object parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.Object parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.Object parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.Object parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.Object prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code aserto.directory.common.v3.Object} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.Object) + com.aserto.directory.common.v3.ObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Object_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Object_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.Object.class, com.aserto.directory.common.v3.Object.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.Object.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + id_ = ""; + displayName_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + updatedAt_ = null; + if (updatedAtBuilder_ != null) { + updatedAtBuilder_.dispose(); + updatedAtBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Object_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Object getDefaultInstanceForType() { + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.Object build() { + com.aserto.directory.common.v3.Object result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Object buildPartial() { + com.aserto.directory.common.v3.Object result = new com.aserto.directory.common.v3.Object(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.Object result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updatedAt_ = updatedAtBuilder_ == null + ? updatedAt_ + : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+     * object type name
+     * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object type name
+     * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object type name
+     * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * object type name
+     * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * object type name
+     * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @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(); } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+     * external object identifier (cs-string, no spaces or tabs)
+     * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * external object identifier (cs-string, no spaces or tabs)
+     * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * external object identifier (cs-string, no spaces or tabs)
+     * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * external object identifier (cs-string, no spaces or tabs)
+     * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * external object identifier (cs-string, no spaces or tabs)
+     * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @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(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * display name object
+     * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * display name object
+     * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * display name object
+     * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * display name object
+     * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * display name object
+     * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct properties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> propertiesBuilder_; + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return The properties. + */ + public com.google.protobuf.Struct getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setProperties(com.google.protobuf.Struct value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setProperties( + com.google.protobuf.Struct.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeProperties(com.google.protobuf.Struct value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + properties_ != null && + properties_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000008); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : properties_; + } + } + /** + *
+     * property bag
+     * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000010); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + public boolean hasUpdatedAt() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + } else { + updatedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + updatedAt_ != null && + updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdatedAtBuilder().mergeFrom(value); + } else { + updatedAt_ = value; + } + } else { + updatedAtBuilder_.mergeFrom(value); + } + if (updatedAt_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdatedAt() { + bitField0_ = (bitField0_ & ~0x00000020); + updatedAt_ = null; + if (updatedAtBuilder_ != null) { + updatedAtBuilder_.dispose(); + updatedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.Object) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.Object) + private static final com.aserto.directory.common.v3.Object DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.Object(); + } + + public static com.aserto.directory.common.v3.Object getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Object parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Object getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectDependency.java b/src/main/java/com/aserto/directory/common/v3/ObjectDependency.java new file mode 100644 index 0000000..d10b60f --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectDependency.java @@ -0,0 +1,1497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + * Protobuf type {@code aserto.directory.common.v3.ObjectDependency} + */ +public final class ObjectDependency extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.ObjectDependency) + ObjectDependencyOrBuilder { +private static final long serialVersionUID = 0L; + // Use ObjectDependency.newBuilder() to construct. + private ObjectDependency(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectDependency() { + objectType_ = ""; + objectId_ = ""; + relation_ = ""; + subjectType_ = ""; + subjectId_ = ""; + subjectRelation_ = ""; + path_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ObjectDependency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectDependency.class, com.aserto.directory.common.v3.ObjectDependency.Builder.class); + } + + public static final int OBJECT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object objectType_ = ""; + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectType. + */ + @java.lang.Override + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } + } + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object objectId_ = ""; + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectId. + */ + @java.lang.Override + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } + } + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELATION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object relation_ = ""; + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The relation. + */ + @java.lang.Override + public java.lang.String getRelation() { + java.lang.Object ref = relation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relation_ = s; + return s; + } + } + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for relation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRelationBytes() { + java.lang.Object ref = relation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectType_ = ""; + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectType. + */ + @java.lang.Override + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectType_ = s; + return s; + } + } + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectId_ = ""; + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectId. + */ + @java.lang.Override + public java.lang.String getSubjectId() { + java.lang.Object ref = subjectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectId_ = s; + return s; + } + } + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectIdBytes() { + java.lang.Object ref = subjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_RELATION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectRelation_ = ""; + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectRelation. + */ + @java.lang.Override + public java.lang.String getSubjectRelation() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectRelation_ = s; + return s; + } + } + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectRelation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectRelationBytes() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectRelation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPTH_FIELD_NUMBER = 7; + private int depth_ = 0; + /** + *
+   * dependency depth
+   * 
+ * + * int32 depth = 7 [json_name = "depth", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The depth. + */ + @java.lang.Override + public int getDepth() { + return depth_; + } + + public static final int IS_CYCLE_FIELD_NUMBER = 8; + private boolean isCycle_ = false; + /** + *
+   * dependency cycle
+   * 
+ * + * bool is_cycle = 8 [json_name = "isCycle", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The isCycle. + */ + @java.lang.Override + public boolean getIsCycle() { + return isCycle_; + } + + public static final int PATH_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList path_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the path. + */ + public com.google.protobuf.ProtocolStringList + getPathList() { + return path_; + } + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of path. + */ + public int getPathCount() { + return path_.size(); + } + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The path at the given index. + */ + public java.lang.String getPath(int index) { + return path_.get(index); + } + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the path at the given index. + */ + public com.google.protobuf.ByteString + getPathBytes(int index) { + return path_.getByteString(index); + } + + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.ObjectDependency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.ObjectDependency parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectDependency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.ObjectDependency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code aserto.directory.common.v3.ObjectDependency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.ObjectDependency) + com.aserto.directory.common.v3.ObjectDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectDependency.class, com.aserto.directory.common.v3.ObjectDependency.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.ObjectDependency.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + objectType_ = ""; + objectId_ = ""; + relation_ = ""; + subjectType_ = ""; + subjectId_ = ""; + subjectRelation_ = ""; + depth_ = 0; + isCycle_ = false; + path_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectDependency_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectDependency getDefaultInstanceForType() { + return com.aserto.directory.common.v3.ObjectDependency.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectDependency build() { + com.aserto.directory.common.v3.ObjectDependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectDependency buildPartial() { + com.aserto.directory.common.v3.ObjectDependency result = new com.aserto.directory.common.v3.ObjectDependency(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.ObjectDependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objectType_ = objectType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectId_ = objectId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relation_ = relation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.subjectType_ = subjectType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.subjectId_ = subjectId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.subjectRelation_ = subjectRelation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.depth_ = depth_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isCycle_ = isCycle_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + path_.makeImmutable(); + result.path_ = path_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object objectType_ = ""; + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectType. + */ + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectType. + */ + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearObjectType() { + objectType_ = getDefaultInstance().getObjectType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectId_ = ""; + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectId. + */ + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectId. + */ + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearObjectId() { + objectId_ = getDefaultInstance().getObjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object relation_ = ""; + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The relation. + */ + public java.lang.String getRelation() { + java.lang.Object ref = relation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for relation. + */ + public com.google.protobuf.ByteString + getRelationBytes() { + java.lang.Object ref = relation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The relation to set. + * @return This builder for chaining. + */ + public Builder setRelation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + relation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRelation() { + relation_ = getDefaultInstance().getRelation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for relation to set. + * @return This builder for chaining. + */ + public Builder setRelationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + relation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object subjectType_ = ""; + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectType. + */ + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectType. + */ + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSubjectType() { + subjectType_ = getDefaultInstance().getSubjectType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object subjectId_ = ""; + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectId. + */ + public java.lang.String getSubjectId() { + java.lang.Object ref = subjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectId. + */ + public com.google.protobuf.ByteString + getSubjectIdBytes() { + java.lang.Object ref = subjectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The subjectId to set. + * @return This builder for chaining. + */ + public Builder setSubjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSubjectId() { + subjectId_ = getDefaultInstance().getSubjectId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for subjectId to set. + * @return This builder for chaining. + */ + public Builder setSubjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object subjectRelation_ = ""; + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectRelation. + */ + public java.lang.String getSubjectRelation() { + java.lang.Object ref = subjectRelation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectRelation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectRelation. + */ + public com.google.protobuf.ByteString + getSubjectRelationBytes() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectRelation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The subjectRelation to set. + * @return This builder for chaining. + */ + public Builder setSubjectRelation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectRelation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSubjectRelation() { + subjectRelation_ = getDefaultInstance().getSubjectRelation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for subjectRelation to set. + * @return This builder for chaining. + */ + public Builder setSubjectRelationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectRelation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int depth_ ; + /** + *
+     * dependency depth
+     * 
+ * + * int32 depth = 7 [json_name = "depth", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The depth. + */ + @java.lang.Override + public int getDepth() { + return depth_; + } + /** + *
+     * dependency depth
+     * 
+ * + * int32 depth = 7 [json_name = "depth", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The depth to set. + * @return This builder for chaining. + */ + public Builder setDepth(int value) { + + depth_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * dependency depth
+     * 
+ * + * int32 depth = 7 [json_name = "depth", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDepth() { + bitField0_ = (bitField0_ & ~0x00000040); + depth_ = 0; + onChanged(); + return this; + } + + private boolean isCycle_ ; + /** + *
+     * dependency cycle
+     * 
+ * + * bool is_cycle = 8 [json_name = "isCycle", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The isCycle. + */ + @java.lang.Override + public boolean getIsCycle() { + return isCycle_; + } + /** + *
+     * dependency cycle
+     * 
+ * + * bool is_cycle = 8 [json_name = "isCycle", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The isCycle to set. + * @return This builder for chaining. + */ + public Builder setIsCycle(boolean value) { + + isCycle_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * dependency cycle
+     * 
+ * + * bool is_cycle = 8 [json_name = "isCycle", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearIsCycle() { + bitField0_ = (bitField0_ & ~0x00000080); + isCycle_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList path_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePathIsMutable() { + if (!path_.isModifiable()) { + path_ = new com.google.protobuf.LazyStringArrayList(path_); + } + bitField0_ |= 0x00000100; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the path. + */ + public com.google.protobuf.ProtocolStringList + getPathList() { + path_.makeImmutable(); + return path_; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of path. + */ + public int getPathCount() { + return path_.size(); + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The path at the given index. + */ + public java.lang.String getPath(int index) { + return path_.get(index); + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the path at the given index. + */ + public com.google.protobuf.ByteString + getPathBytes(int index) { + return path_.getByteString(index); + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index to set the value at. + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePathIsMutable(); + path_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The path to add. + * @return This builder for chaining. + */ + public Builder addPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePathIsMutable(); + path_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param values The path to add. + * @return This builder for chaining. + */ + public Builder addAllPath( + java.lang.Iterable values) { + ensurePathIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, path_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; + onChanged(); + return this; + } + /** + *
+     * dependency path
+     * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes of the path to add. + * @return This builder for chaining. + */ + public Builder addPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePathIsMutable(); + path_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.ObjectDependency) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.ObjectDependency) + private static final com.aserto.directory.common.v3.ObjectDependency DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.ObjectDependency(); + } + + public static com.aserto.directory.common.v3.ObjectDependency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectDependency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectDependencyOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/ObjectDependencyOrBuilder.java new file mode 100644 index 0000000..6f4e659 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectDependencyOrBuilder.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface ObjectDependencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.ObjectDependency) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectType. + */ + java.lang.String getObjectType(); + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectType. + */ + com.google.protobuf.ByteString + getObjectTypeBytes(); + + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The objectId. + */ + java.lang.String getObjectId(); + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for objectId. + */ + com.google.protobuf.ByteString + getObjectIdBytes(); + + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The relation. + */ + java.lang.String getRelation(); + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for relation. + */ + com.google.protobuf.ByteString + getRelationBytes(); + + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectType. + */ + java.lang.String getSubjectType(); + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectType. + */ + com.google.protobuf.ByteString + getSubjectTypeBytes(); + + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectId. + */ + java.lang.String getSubjectId(); + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectId. + */ + com.google.protobuf.ByteString + getSubjectIdBytes(); + + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subjectRelation. + */ + java.lang.String getSubjectRelation(); + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subjectRelation. + */ + com.google.protobuf.ByteString + getSubjectRelationBytes(); + + /** + *
+   * dependency depth
+   * 
+ * + * int32 depth = 7 [json_name = "depth", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The depth. + */ + int getDepth(); + + /** + *
+   * dependency cycle
+   * 
+ * + * bool is_cycle = 8 [json_name = "isCycle", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The isCycle. + */ + boolean getIsCycle(); + + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the path. + */ + java.util.List + getPathList(); + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of path. + */ + int getPathCount(); + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The path at the given index. + */ + java.lang.String getPath(int index); + /** + *
+   * dependency path
+   * 
+ * + * repeated string path = 9 [json_name = "path", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The bytes of the path at the given index. + */ + com.google.protobuf.ByteString + getPathBytes(int index); +} diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectIdentifier.java b/src/main/java/com/aserto/directory/common/v3/ObjectIdentifier.java new file mode 100644 index 0000000..6940174 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectIdentifier.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + *
+ * Object identifier
+ * 
+ * + * Protobuf type {@code aserto.directory.common.v3.ObjectIdentifier} + */ +public final class ObjectIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.ObjectIdentifier) + ObjectIdentifierOrBuilder { +private static final long serialVersionUID = 0L; + // Use ObjectIdentifier.newBuilder() to construct. + private ObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectIdentifier() { + objectType_ = ""; + objectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ObjectIdentifier(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectIdentifier.class, com.aserto.directory.common.v3.ObjectIdentifier.Builder.class); + } + + public static final int OBJECT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object objectType_ = ""; + /** + *
+   * object type (lc-string)
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + @java.lang.Override + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } + } + /** + *
+   * object type (lc-string)
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object objectId_ = ""; + /** + *
+   * object identifier (cs-string)
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + @java.lang.Override + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } + } + /** + *
+   * object identifier (cs-string)
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.ObjectIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.ObjectIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.ObjectIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Object identifier
+   * 
+ * + * Protobuf type {@code aserto.directory.common.v3.ObjectIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.ObjectIdentifier) + com.aserto.directory.common.v3.ObjectIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectIdentifier.class, com.aserto.directory.common.v3.ObjectIdentifier.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.ObjectIdentifier.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + objectType_ = ""; + objectId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectIdentifier getDefaultInstanceForType() { + return com.aserto.directory.common.v3.ObjectIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectIdentifier build() { + com.aserto.directory.common.v3.ObjectIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectIdentifier buildPartial() { + com.aserto.directory.common.v3.ObjectIdentifier result = new com.aserto.directory.common.v3.ObjectIdentifier(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.ObjectIdentifier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objectType_ = objectType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectId_ = objectId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object objectType_ = ""; + /** + *
+     * object type (lc-string)
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object type (lc-string)
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object type (lc-string)
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * object type (lc-string)
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearObjectType() { + objectType_ = getDefaultInstance().getObjectType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * object type (lc-string)
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectId_ = ""; + /** + *
+     * object identifier (cs-string)
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object identifier (cs-string)
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object identifier (cs-string)
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * object identifier (cs-string)
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearObjectId() { + objectId_ = getDefaultInstance().getObjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * object identifier (cs-string)
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.ObjectIdentifier) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.ObjectIdentifier) + private static final com.aserto.directory.common.v3.ObjectIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.ObjectIdentifier(); + } + + public static com.aserto.directory.common.v3.ObjectIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectIdentifierOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/ObjectIdentifierOrBuilder.java new file mode 100644 index 0000000..3b7072e --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectIdentifierOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface ObjectIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.ObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object type (lc-string)
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + java.lang.String getObjectType(); + /** + *
+   * object type (lc-string)
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + com.google.protobuf.ByteString + getObjectTypeBytes(); + + /** + *
+   * object identifier (cs-string)
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + java.lang.String getObjectId(); + /** + *
+   * object identifier (cs-string)
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + com.google.protobuf.ByteString + getObjectIdBytes(); +} diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/ObjectOrBuilder.java new file mode 100644 index 0000000..1af3f63 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface ObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.Object) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object type name
+   * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The type. + */ + java.lang.String getType(); + /** + *
+   * object type name
+   * 
+ * + * string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+   * external object identifier (cs-string, no spaces or tabs)
+   * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * external object identifier (cs-string, no spaces or tabs)
+   * 
+ * + * string id = 2 [json_name = "id", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * display name object
+   * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * display name object
+   * 
+ * + * string display_name = 3 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + * @return The properties. + */ + com.google.protobuf.Struct getProperties(); + /** + *
+   * property bag
+   * 
+ * + * .google.protobuf.Struct properties = 4 [json_name = "properties", (.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getPropertiesOrBuilder(); + + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + boolean hasUpdatedAt(); + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectType.java b/src/main/java/com/aserto/directory/common/v3/ObjectType.java new file mode 100644 index 0000000..88c9128 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectType.java @@ -0,0 +1,867 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + *
+ * Object type
+ * 
+ * + * Protobuf type {@code aserto.directory.common.v3.ObjectType} + */ +public final class ObjectType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.ObjectType) + ObjectTypeOrBuilder { +private static final long serialVersionUID = 0L; + // Use ObjectType.newBuilder() to construct. + private ObjectType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectType() { + name_ = ""; + relations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ObjectType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectType.class, com.aserto.directory.common.v3.ObjectType.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * object type name (lc-string)
+   * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * object type name (lc-string)
+   * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELATIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the relations. + */ + public com.google.protobuf.ProtocolStringList + getRelationsList() { + return relations_; + } + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of relations. + */ + public int getRelationsCount() { + return relations_.size(); + } + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The relations at the given index. + */ + public java.lang.String getRelations(int index) { + return relations_.get(index); + } + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the relations at the given index. + */ + public com.google.protobuf.ByteString + getRelationsBytes(int index) { + return relations_.getByteString(index); + } + + public static final int PERMISSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList + getPermissionsList() { + return permissions_; + } + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + public static com.aserto.directory.common.v3.ObjectType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.ObjectType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.ObjectType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.ObjectType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.ObjectType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Object type
+   * 
+ * + * Protobuf type {@code aserto.directory.common.v3.ObjectType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.ObjectType) + com.aserto.directory.common.v3.ObjectTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.ObjectType.class, com.aserto.directory.common.v3.ObjectType.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.ObjectType.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + relations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_ObjectType_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectType getDefaultInstanceForType() { + return com.aserto.directory.common.v3.ObjectType.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectType build() { + com.aserto.directory.common.v3.ObjectType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectType buildPartial() { + com.aserto.directory.common.v3.ObjectType result = new com.aserto.directory.common.v3.ObjectType(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.ObjectType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + relations_.makeImmutable(); + result.relations_ = relations_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * object type name (lc-string)
+     * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object type name (lc-string)
+     * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object type name (lc-string)
+     * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * object type name (lc-string)
+     * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * object type name (lc-string)
+     * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList relations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRelationsIsMutable() { + if (!relations_.isModifiable()) { + relations_ = new com.google.protobuf.LazyStringArrayList(relations_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the relations. + */ + public com.google.protobuf.ProtocolStringList + getRelationsList() { + relations_.makeImmutable(); + return relations_; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of relations. + */ + public int getRelationsCount() { + return relations_.size(); + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The relations at the given index. + */ + public java.lang.String getRelations(int index) { + return relations_.get(index); + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the relations at the given index. + */ + public com.google.protobuf.ByteString + getRelationsBytes(int index) { + return relations_.getByteString(index); + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index to set the value at. + * @param value The relations to set. + * @return This builder for chaining. + */ + public Builder setRelations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRelationsIsMutable(); + relations_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param value The relations to add. + * @return This builder for chaining. + */ + public Builder addRelations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRelationsIsMutable(); + relations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param values The relations to add. + * @return This builder for chaining. + */ + public Builder addAllRelations( + java.lang.Iterable values) { + ensureRelationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relations_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRelations() { + relations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * relations associated to object type
+     * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes of the relations to add. + * @return This builder for chaining. + */ + public Builder addRelationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRelationsIsMutable(); + relations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePermissionsIsMutable() { + if (!permissions_.isModifiable()) { + permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList + getPermissionsList() { + permissions_.makeImmutable(); + return permissions_; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index to set the value at. + * @param value The permissions to set. + * @return This builder for chaining. + */ + public Builder setPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePermissionsIsMutable(); + permissions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param value The permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param values The permissions to add. + * @return This builder for chaining. + */ + public Builder addAllPermissions( + java.lang.Iterable values) { + ensurePermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearPermissions() { + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * permissions associated to object type
+     * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes of the permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.ObjectType) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.ObjectType) + private static final com.aserto.directory.common.v3.ObjectType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.ObjectType(); + } + + public static com.aserto.directory.common.v3.ObjectType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.ObjectType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/ObjectTypeOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/ObjectTypeOrBuilder.java new file mode 100644 index 0000000..9270226 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/ObjectTypeOrBuilder.java @@ -0,0 +1,112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface ObjectTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.ObjectType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object type name (lc-string)
+   * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * object type name (lc-string)
+   * 
+ * + * string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the relations. + */ + java.util.List + getRelationsList(); + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of relations. + */ + int getRelationsCount(); + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The relations at the given index. + */ + java.lang.String getRelations(int index); + /** + *
+   * relations associated to object type
+   * 
+ * + * repeated string relations = 2 [json_name = "relations", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the relations at the given index. + */ + com.google.protobuf.ByteString + getRelationsBytes(int index); + + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the permissions. + */ + java.util.List + getPermissionsList(); + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @return The count of permissions. + */ + int getPermissionsCount(); + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + java.lang.String getPermissions(int index); + /** + *
+   * permissions associated to object type
+   * 
+ * + * repeated string permissions = 3 [json_name = "permissions", (.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + com.google.protobuf.ByteString + getPermissionsBytes(int index); +} diff --git a/src/main/java/com/aserto/directory/common/v3/PaginationRequest.java b/src/main/java/com/aserto/directory/common/v3/PaginationRequest.java new file mode 100644 index 0000000..1614296 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/PaginationRequest.java @@ -0,0 +1,514 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + *
+ * Pagination request
+ * 
+ * + * Protobuf type {@code aserto.directory.common.v3.PaginationRequest} + */ +public final class PaginationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.PaginationRequest) + PaginationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PaginationRequest.newBuilder() to construct. + private PaginationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PaginationRequest() { + token_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PaginationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.PaginationRequest.class, com.aserto.directory.common.v3.PaginationRequest.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private int size_ = 0; + /** + *
+   * requested page size, valid value between 1-100 rows (default 100)
+   * 
+ * + * int32 size = 1 [json_name = "size", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + *
+   * pagination start token, default ""
+   * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+   * pagination start token, default ""
+   * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.PaginationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.PaginationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.PaginationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.PaginationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Pagination request
+   * 
+ * + * Protobuf type {@code aserto.directory.common.v3.PaginationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.PaginationRequest) + com.aserto.directory.common.v3.PaginationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.PaginationRequest.class, com.aserto.directory.common.v3.PaginationRequest.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.PaginationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + size_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationRequest_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationRequest getDefaultInstanceForType() { + return com.aserto.directory.common.v3.PaginationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationRequest build() { + com.aserto.directory.common.v3.PaginationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationRequest buildPartial() { + com.aserto.directory.common.v3.PaginationRequest result = new com.aserto.directory.common.v3.PaginationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.PaginationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private int size_ ; + /** + *
+     * requested page size, valid value between 1-100 rows (default 100)
+     * 
+ * + * int32 size = 1 [json_name = "size", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + *
+     * requested page size, valid value between 1-100 rows (default 100)
+     * 
+ * + * int32 size = 1 [json_name = "size", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * requested page size, valid value between 1-100 rows (default 100)
+     * 
+ * + * int32 size = 1 [json_name = "size", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSize() { + bitField0_ = (bitField0_ & ~0x00000001); + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+     * pagination start token, default ""
+     * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * pagination start token, default ""
+     * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * pagination start token, default ""
+     * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * pagination start token, default ""
+     * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * pagination start token, default ""
+     * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @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(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.PaginationRequest) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.PaginationRequest) + private static final com.aserto.directory.common.v3.PaginationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.PaginationRequest(); + } + + public static com.aserto.directory.common.v3.PaginationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/PaginationRequestOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/PaginationRequestOrBuilder.java new file mode 100644 index 0000000..ca88fa5 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/PaginationRequestOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface PaginationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.PaginationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * requested page size, valid value between 1-100 rows (default 100)
+   * 
+ * + * int32 size = 1 [json_name = "size", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The size. + */ + int getSize(); + + /** + *
+   * pagination start token, default ""
+   * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The token. + */ + java.lang.String getToken(); + /** + *
+   * pagination start token, default ""
+   * 
+ * + * string token = 2 [json_name = "token", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); +} diff --git a/src/main/java/com/aserto/directory/common/v3/PaginationResponse.java b/src/main/java/com/aserto/directory/common/v3/PaginationResponse.java new file mode 100644 index 0000000..f7ef8f0 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/PaginationResponse.java @@ -0,0 +1,451 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + *
+ * Pagination response
+ * 
+ * + * Protobuf type {@code aserto.directory.common.v3.PaginationResponse} + */ +public final class PaginationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.PaginationResponse) + PaginationResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PaginationResponse.newBuilder() to construct. + private PaginationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PaginationResponse() { + nextToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PaginationResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.PaginationResponse.class, com.aserto.directory.common.v3.PaginationResponse.Builder.class); + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object nextToken_ = ""; + /** + *
+   * next page token, when empty there are no more pages to fetch
+   * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nextToken. + */ + @java.lang.Override + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } + } + /** + *
+   * next page token, when empty there are no more pages to fetch
+   * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.PaginationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.PaginationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.PaginationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.PaginationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Pagination response
+   * 
+ * + * Protobuf type {@code aserto.directory.common.v3.PaginationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.PaginationResponse) + com.aserto.directory.common.v3.PaginationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.PaginationResponse.class, com.aserto.directory.common.v3.PaginationResponse.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.PaginationResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_PaginationResponse_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationResponse getDefaultInstanceForType() { + return com.aserto.directory.common.v3.PaginationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationResponse build() { + com.aserto.directory.common.v3.PaginationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationResponse buildPartial() { + com.aserto.directory.common.v3.PaginationResponse result = new com.aserto.directory.common.v3.PaginationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.PaginationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nextToken_ = nextToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object nextToken_ = ""; + /** + *
+     * next page token, when empty there are no more pages to fetch
+     * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nextToken. + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next page token, when empty there are no more pages to fetch
+     * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nextToken. + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next page token, when empty there are no more pages to fetch
+     * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The nextToken to set. + * @return This builder for chaining. + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * next page token, when empty there are no more pages to fetch
+     * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearNextToken() { + nextToken_ = getDefaultInstance().getNextToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * next page token, when empty there are no more pages to fetch
+     * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for nextToken to set. + * @return This builder for chaining. + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.PaginationResponse) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.PaginationResponse) + private static final com.aserto.directory.common.v3.PaginationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.PaginationResponse(); + } + + public static com.aserto.directory.common.v3.PaginationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.PaginationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/PaginationResponseOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/PaginationResponseOrBuilder.java new file mode 100644 index 0000000..c5e5f81 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/PaginationResponseOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface PaginationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.PaginationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * next page token, when empty there are no more pages to fetch
+   * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nextToken. + */ + java.lang.String getNextToken(); + /** + *
+   * next page token, when empty there are no more pages to fetch
+   * 
+ * + * string next_token = 1 [json_name = "nextToken", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nextToken. + */ + com.google.protobuf.ByteString + getNextTokenBytes(); +} diff --git a/src/main/java/com/aserto/directory/common/v3/Relation.java b/src/main/java/com/aserto/directory/common/v3/Relation.java new file mode 100644 index 0000000..d0dbcc2 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/Relation.java @@ -0,0 +1,1729 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +/** + * Protobuf type {@code aserto.directory.common.v3.Relation} + */ +public final class Relation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.common.v3.Relation) + RelationOrBuilder { +private static final long serialVersionUID = 0L; + // Use Relation.newBuilder() to construct. + private Relation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Relation() { + objectType_ = ""; + objectId_ = ""; + relation_ = ""; + subjectType_ = ""; + subjectId_ = ""; + subjectRelation_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Relation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Relation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Relation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.Relation.class, com.aserto.directory.common.v3.Relation.Builder.class); + } + + private int bitField0_; + public static final int OBJECT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object objectType_ = ""; + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + @java.lang.Override + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } + } + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object objectId_ = ""; + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + @java.lang.Override + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } + } + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELATION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object relation_ = ""; + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The relation. + */ + @java.lang.Override + public java.lang.String getRelation() { + java.lang.Object ref = relation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relation_ = s; + return s; + } + } + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for relation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRelationBytes() { + java.lang.Object ref = relation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectType_ = ""; + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectType. + */ + @java.lang.Override + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectType_ = s; + return s; + } + } + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectId_ = ""; + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectId. + */ + @java.lang.Override + public java.lang.String getSubjectId() { + java.lang.Object ref = subjectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectId_ = s; + return s; + } + } + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectIdBytes() { + java.lang.Object ref = subjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_RELATION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object subjectRelation_ = ""; + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The subjectRelation. + */ + @java.lang.Override + public java.lang.String getSubjectRelation() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectRelation_ = s; + return s; + } + } + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The bytes for subjectRelation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectRelationBytes() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectRelation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int UPDATED_AT_FIELD_NUMBER = 21; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + @java.lang.Override + public boolean hasUpdatedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + + public static final int ETAG_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static com.aserto.directory.common.v3.Relation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Relation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.common.v3.Relation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.common.v3.Relation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.common.v3.Relation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.common.v3.Relation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.common.v3.Relation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code aserto.directory.common.v3.Relation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.common.v3.Relation) + com.aserto.directory.common.v3.RelationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Relation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Relation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.common.v3.Relation.class, com.aserto.directory.common.v3.Relation.Builder.class); + } + + // Construct using com.aserto.directory.common.v3.Relation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getUpdatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + objectType_ = ""; + objectId_ = ""; + relation_ = ""; + subjectType_ = ""; + subjectId_ = ""; + subjectRelation_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + updatedAt_ = null; + if (updatedAtBuilder_ != null) { + updatedAtBuilder_.dispose(); + updatedAtBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.common.v3.CommonProto.internal_static_aserto_directory_common_v3_Relation_descriptor; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Relation getDefaultInstanceForType() { + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.common.v3.Relation build() { + com.aserto.directory.common.v3.Relation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Relation buildPartial() { + com.aserto.directory.common.v3.Relation result = new com.aserto.directory.common.v3.Relation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.common.v3.Relation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objectType_ = objectType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectId_ = objectId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relation_ = relation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.subjectType_ = subjectType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.subjectId_ = subjectId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.subjectRelation_ = subjectRelation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updatedAt_ = updatedAtBuilder_ == null + ? updatedAt_ + : updatedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private java.lang.Object objectType_ = ""; + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + public java.lang.String getObjectType() { + java.lang.Object ref = objectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + public com.google.protobuf.ByteString + getObjectTypeBytes() { + java.lang.Object ref = objectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearObjectType() { + objectType_ = getDefaultInstance().getObjectType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * object type
+     * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for objectType to set. + * @return This builder for chaining. + */ + public Builder setObjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectId_ = ""; + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + public com.google.protobuf.ByteString + getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearObjectId() { + objectId_ = getDefaultInstance().getObjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * object identifier
+     * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + objectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object relation_ = ""; + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The relation. + */ + public java.lang.String getRelation() { + java.lang.Object ref = relation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for relation. + */ + public com.google.protobuf.ByteString + getRelationBytes() { + java.lang.Object ref = relation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The relation to set. + * @return This builder for chaining. + */ + public Builder setRelation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + relation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearRelation() { + relation_ = getDefaultInstance().getRelation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * object relation name
+     * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for relation to set. + * @return This builder for chaining. + */ + public Builder setRelationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + relation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object subjectType_ = ""; + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectType. + */ + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectType. + */ + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSubjectType() { + subjectType_ = getDefaultInstance().getSubjectType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * subject type
+     * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object subjectId_ = ""; + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectId. + */ + public java.lang.String getSubjectId() { + java.lang.Object ref = subjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectId. + */ + public com.google.protobuf.ByteString + getSubjectIdBytes() { + java.lang.Object ref = subjectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The subjectId to set. + * @return This builder for chaining. + */ + public Builder setSubjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSubjectId() { + subjectId_ = getDefaultInstance().getSubjectId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * subject identifier
+     * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @param value The bytes for subjectId to set. + * @return This builder for chaining. + */ + public Builder setSubjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object subjectRelation_ = ""; + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The subjectRelation. + */ + public java.lang.String getSubjectRelation() { + java.lang.Object ref = subjectRelation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectRelation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The bytes for subjectRelation. + */ + public com.google.protobuf.ByteString + getSubjectRelationBytes() { + java.lang.Object ref = subjectRelation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectRelation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @param value The subjectRelation to set. + * @return This builder for chaining. + */ + public Builder setSubjectRelation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subjectRelation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSubjectRelation() { + subjectRelation_ = getDefaultInstance().getSubjectRelation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * optional subject relation name
+     * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @param value The bytes for subjectRelation to set. + * @return This builder for chaining. + */ + public Builder setSubjectRelationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subjectRelation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000040); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+     * created at timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + public boolean hasUpdatedAt() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + } else { + updatedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + updatedAt_ != null && + updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdatedAtBuilder().mergeFrom(value); + } else { + updatedAt_ = value; + } + } else { + updatedAtBuilder_.mergeFrom(value); + } + if (updatedAt_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdatedAt() { + bitField0_ = (bitField0_ & ~0x00000080); + updatedAt_ = null; + if (updatedAtBuilder_ != null) { + updatedAtBuilder_.dispose(); + updatedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+     * last updated timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * object instance etag
+     * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.common.v3.Relation) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.common.v3.Relation) + private static final com.aserto.directory.common.v3.Relation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.common.v3.Relation(); + } + + public static com.aserto.directory.common.v3.Relation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Relation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.common.v3.Relation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/common/v3/RelationOrBuilder.java b/src/main/java/com/aserto/directory/common/v3/RelationOrBuilder.java new file mode 100644 index 0000000..2bb2937 --- /dev/null +++ b/src/main/java/com/aserto/directory/common/v3/RelationOrBuilder.java @@ -0,0 +1,204 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/common/v3/common.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.common.v3; + +public interface RelationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.common.v3.Relation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectType. + */ + java.lang.String getObjectType(); + /** + *
+   * object type
+   * 
+ * + * string object_type = 1 [json_name = "objectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectType. + */ + com.google.protobuf.ByteString + getObjectTypeBytes(); + + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The objectId. + */ + java.lang.String getObjectId(); + /** + *
+   * object identifier
+   * 
+ * + * string object_id = 2 [json_name = "objectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for objectId. + */ + com.google.protobuf.ByteString + getObjectIdBytes(); + + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The relation. + */ + java.lang.String getRelation(); + /** + *
+   * object relation name
+   * 
+ * + * string relation = 3 [json_name = "relation", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for relation. + */ + com.google.protobuf.ByteString + getRelationBytes(); + + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectType. + */ + java.lang.String getSubjectType(); + /** + *
+   * subject type
+   * 
+ * + * string subject_type = 4 [json_name = "subjectType", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectType. + */ + com.google.protobuf.ByteString + getSubjectTypeBytes(); + + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The subjectId. + */ + java.lang.String getSubjectId(); + /** + *
+   * subject identifier
+   * 
+ * + * string subject_id = 5 [json_name = "subjectId", (.google.api.field_behavior) = REQUIRED, (.buf.validate.field) = { ... } + * @return The bytes for subjectId. + */ + com.google.protobuf.ByteString + getSubjectIdBytes(); + + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The subjectRelation. + */ + java.lang.String getSubjectRelation(); + /** + *
+   * optional subject relation name
+   * 
+ * + * string subject_relation = 6 [json_name = "subjectRelation", (.google.api.field_behavior) = OPTIONAL, (.buf.validate.field) = { ... } + * @return The bytes for subjectRelation. + */ + com.google.protobuf.ByteString + getSubjectRelationBytes(); + + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+   * created at timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp created_at = 20 [json_name = "createdAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updatedAt field is set. + */ + boolean hasUpdatedAt(); + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updatedAt. + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+   * last updated timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp updated_at = 21 [json_name = "updatedAt", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * object instance etag
+   * 
+ * + * string etag = 23 [json_name = "etag", (.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExportRequest.java b/src/main/java/com/aserto/directory/exporter/v2/ExportRequest.java index a6dc314..52b5819 100644 --- a/src/main/java/com/aserto/directory/exporter/v2/ExportRequest.java +++ b/src/main/java/com/aserto/directory/exporter/v2/ExportRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: aserto/directory/exporter/v2/exporter.proto +// Protobuf Java Version: 3.25.0 package com.aserto.directory.exporter.v2; /** @@ -38,6 +39,7 @@ protected java.lang.Object newInstance( com.aserto.directory.exporter.v2.ExportRequest.class, com.aserto.directory.exporter.v2.ExportRequest.Builder.class); } + private int bitField0_; public static final int OPTIONS_FIELD_NUMBER = 1; private int options_ = 0; /** @@ -65,7 +67,7 @@ public int getOptions() { */ @java.lang.Override public boolean hasStartFrom() { - return startFrom_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -135,11 +137,13 @@ public static com.aserto.directory.exporter.v2.ExportRequest parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.exporter.v2.ExportRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.exporter.v2.ExportRequest parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -203,13 +207,19 @@ public static final class Builder extends
 
     // Construct using com.aserto.directory.exporter.v2.ExportRequest.newBuilder()
     private Builder() {
-
+      maybeForceBuilderInitialization();
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getStartFromFieldBuilder();
+      }
     }
     @java.lang.Override
     public Builder clear() {
@@ -257,13 +267,48 @@ private void buildPartial0(com.aserto.directory.exporter.v2.ExportRequest result
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.options_ = options_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.startFrom_ = startFromBuilder_ == null
             ? startFrom_
             : startFromBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int bitField0_;
 
     private int options_ ;
@@ -396,8 +441,10 @@ public Builder mergeStartFrom(com.google.protobuf.Timestamp value) {
       } else {
         startFromBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (startFrom_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExportRequestOrBuilder.java b/src/main/java/com/aserto/directory/exporter/v2/ExportRequestOrBuilder.java
index 057f080..10688b3 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/ExportRequestOrBuilder.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/ExportRequestOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/exporter/v2/exporter.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.exporter.v2;
 
 public interface ExportRequestOrBuilder extends
diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExportResponse.java b/src/main/java/com/aserto/directory/exporter/v2/ExportResponse.java
index 502dd9e..eb83f23 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/ExportResponse.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/ExportResponse.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/exporter/v2/exporter.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.exporter.v2;
 
 /**
@@ -345,11 +346,13 @@ public static com.aserto.directory.exporter.v2.ExportResponse parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static com.aserto.directory.exporter.v2.ExportResponse parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.aserto.directory.exporter.v2.ExportResponse parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -503,6 +506,38 @@ private void buildPartialOneofs(com.aserto.directory.exporter.v2.ExportResponse
       }
     }
 
+    @java.lang.Override
+    public Builder clone() {
+      return super.clone();
+    }
+    @java.lang.Override
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.setField(field, value);
+    }
+    @java.lang.Override
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return super.clearField(field);
+    }
+    @java.lang.Override
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return super.clearOneof(oneof);
+    }
+    @java.lang.Override
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
+      return super.setRepeatedField(field, index, value);
+    }
+    @java.lang.Override
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
+      return super.addRepeatedField(field, value);
+    }
     private int msgCase_ = 0;
     private java.lang.Object msg_;
     public MsgCase
diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExportResponseOrBuilder.java b/src/main/java/com/aserto/directory/exporter/v2/ExportResponseOrBuilder.java
index 2b6a611..268fa6f 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/ExportResponseOrBuilder.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/ExportResponseOrBuilder.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/exporter/v2/exporter.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.exporter.v2;
 
 public interface ExportResponseOrBuilder extends
diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExporterGrpc.java b/src/main/java/com/aserto/directory/exporter/v2/ExporterGrpc.java
index 7f5f9fb..d80d3e1 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/ExporterGrpc.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/ExporterGrpc.java
@@ -5,14 +5,14 @@
 /**
  */
 @javax.annotation.Generated(
-    value = "by gRPC proto compiler (version 1.53.0)",
+    value = "by gRPC proto compiler (version 1.59.0)",
     comments = "Source: aserto/directory/exporter/v2/exporter.proto")
 @io.grpc.stub.annotations.GrpcGenerated
 public final class ExporterGrpc {
 
   private ExporterGrpc() {}
 
-  public static final String SERVICE_NAME = "aserto.directory.exporter.v2.Exporter";
+  public static final java.lang.String SERVICE_NAME = "aserto.directory.exporter.v2.Exporter";
 
   // Static method descriptors that strictly reflect the proto.
   private static volatile io.grpc.MethodDescriptor responseObserver) {
       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportMethod(), responseObserver);
     }
+  }
+
+  /**
+   * Base class for the server implementation of the service Exporter.
+   */
+  public static abstract class ExporterImplBase
+      implements io.grpc.BindableService, AsyncService {
 
     @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
-      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
-          .addMethod(
-            getExportMethod(),
-            io.grpc.stub.ServerCalls.asyncServerStreamingCall(
-              new MethodHandlers<
-                com.aserto.directory.exporter.v2.ExportRequest,
-                com.aserto.directory.exporter.v2.ExportResponse>(
-                  this, METHODID_EXPORT)))
-          .build();
+      return ExporterGrpc.bindService(this);
     }
   }
 
   /**
+   * A stub to allow clients to do asynchronous rpc calls to service Exporter.
    */
-  public static final class ExporterStub extends io.grpc.stub.AbstractAsyncStub {
+  public static final class ExporterStub
+      extends io.grpc.stub.AbstractAsyncStub {
     private ExporterStub(
         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
@@ -138,8 +139,10 @@ public void export(com.aserto.directory.exporter.v2.ExportRequest request,
   }
 
   /**
+   * A stub to allow clients to do synchronous rpc calls to service Exporter.
    */
-  public static final class ExporterBlockingStub extends io.grpc.stub.AbstractBlockingStub {
+  public static final class ExporterBlockingStub
+      extends io.grpc.stub.AbstractBlockingStub {
     private ExporterBlockingStub(
         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
@@ -161,8 +164,10 @@ public java.util.Iterator expor
   }
 
   /**
+   * A stub to allow clients to do ListenableFuture-style rpc calls to service Exporter.
    */
-  public static final class ExporterFutureStub extends io.grpc.stub.AbstractFutureStub {
+  public static final class ExporterFutureStub
+      extends io.grpc.stub.AbstractFutureStub {
     private ExporterFutureStub(
         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
@@ -182,10 +187,10 @@ private static final class MethodHandlers implements
       io.grpc.stub.ServerCalls.ServerStreamingMethod,
       io.grpc.stub.ServerCalls.ClientStreamingMethod,
       io.grpc.stub.ServerCalls.BidiStreamingMethod {
-    private final ExporterImplBase serviceImpl;
+    private final AsyncService serviceImpl;
     private final int methodId;
 
-    MethodHandlers(ExporterImplBase serviceImpl, int methodId) {
+    MethodHandlers(AsyncService serviceImpl, int methodId) {
       this.serviceImpl = serviceImpl;
       this.methodId = methodId;
     }
@@ -214,6 +219,18 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
+  public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+        .addMethod(
+          getExportMethod(),
+          io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+            new MethodHandlers<
+              com.aserto.directory.exporter.v2.ExportRequest,
+              com.aserto.directory.exporter.v2.ExportResponse>(
+                service, METHODID_EXPORT)))
+        .build();
+  }
+
   private static abstract class ExporterBaseDescriptorSupplier
       implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ExporterBaseDescriptorSupplier() {}
@@ -237,9 +254,9 @@ private static final class ExporterFileDescriptorSupplier
   private static final class ExporterMethodDescriptorSupplier
       extends ExporterBaseDescriptorSupplier
       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
-    private final String methodName;
+    private final java.lang.String methodName;
 
-    ExporterMethodDescriptorSupplier(String methodName) {
+    ExporterMethodDescriptorSupplier(java.lang.String methodName) {
       this.methodName = methodName;
     }
 
diff --git a/src/main/java/com/aserto/directory/exporter/v2/ExporterProto.java b/src/main/java/com/aserto/directory/exporter/v2/ExporterProto.java
index 21326f8..d062180 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/ExporterProto.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/ExporterProto.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/exporter/v2/exporter.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.exporter.v2;
 
 public final class ExporterProto {
diff --git a/src/main/java/com/aserto/directory/exporter/v2/Option.java b/src/main/java/com/aserto/directory/exporter/v2/Option.java
index fbc7c01..7c2ca58 100644
--- a/src/main/java/com/aserto/directory/exporter/v2/Option.java
+++ b/src/main/java/com/aserto/directory/exporter/v2/Option.java
@@ -1,6 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: aserto/directory/exporter/v2/exporter.proto
 
+// Protobuf Java Version: 3.25.0
 package com.aserto.directory.exporter.v2;
 
 /**
@@ -58,7 +59,7 @@ public enum Option
   OPTION_DATA_OBJECTS(8),
   /**
    * 
-   * relation instances with id values
+   * relation instances
    * 
* * OPTION_DATA_RELATIONS = 16; @@ -157,7 +158,7 @@ public enum Option public static final int OPTION_DATA_OBJECTS_VALUE = 8; /** *
-   * relation instances with id values
+   * relation instances
    * 
* * OPTION_DATA_RELATIONS = 16; diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExportRequest.java b/src/main/java/com/aserto/directory/exporter/v3/ExportRequest.java new file mode 100644 index 0000000..5d431d5 --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExportRequest.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +/** + * Protobuf type {@code aserto.directory.exporter.v3.ExportRequest} + */ +public final class ExportRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.exporter.v3.ExportRequest) + ExportRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExportRequest.newBuilder() to construct. + private ExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExportRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.exporter.v3.ExportRequest.class, com.aserto.directory.exporter.v3.ExportRequest.Builder.class); + } + + private int bitField0_; + public static final int OPTIONS_FIELD_NUMBER = 1; + private int options_ = 0; + /** + *
+   * data export options mask
+   * 
+ * + * uint32 options = 1 [json_name = "options"]; + * @return The options. + */ + @java.lang.Override + public int getOptions() { + return options_; + } + + public static final int START_FROM_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp startFrom_; + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return Whether the startFrom field is set. + */ + @java.lang.Override + public boolean hasStartFrom() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return The startFrom. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartFrom() { + return startFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startFrom_; + } + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartFromOrBuilder() { + return startFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startFrom_; + } + + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.exporter.v3.ExportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.exporter.v3.ExportRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.exporter.v3.ExportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.exporter.v3.ExportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code aserto.directory.exporter.v3.ExportRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.exporter.v3.ExportRequest) + com.aserto.directory.exporter.v3.ExportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.exporter.v3.ExportRequest.class, com.aserto.directory.exporter.v3.ExportRequest.Builder.class); + } + + // Construct using com.aserto.directory.exporter.v3.ExportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStartFromFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + options_ = 0; + startFrom_ = null; + if (startFromBuilder_ != null) { + startFromBuilder_.dispose(); + startFromBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportRequest getDefaultInstanceForType() { + return com.aserto.directory.exporter.v3.ExportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportRequest build() { + com.aserto.directory.exporter.v3.ExportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportRequest buildPartial() { + com.aserto.directory.exporter.v3.ExportRequest result = new com.aserto.directory.exporter.v3.ExportRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.exporter.v3.ExportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.options_ = options_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startFrom_ = startFromBuilder_ == null + ? startFrom_ + : startFromBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int bitField0_; + + private int options_ ; + /** + *
+     * data export options mask
+     * 
+ * + * uint32 options = 1 [json_name = "options"]; + * @return The options. + */ + @java.lang.Override + public int getOptions() { + return options_; + } + /** + *
+     * data export options mask
+     * 
+ * + * uint32 options = 1 [json_name = "options"]; + * @param value The options to set. + * @return This builder for chaining. + */ + public Builder setOptions(int value) { + + options_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * data export options mask
+     * 
+ * + * uint32 options = 1 [json_name = "options"]; + * @return This builder for chaining. + */ + public Builder clearOptions() { + bitField0_ = (bitField0_ & ~0x00000001); + options_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startFrom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startFromBuilder_; + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return Whether the startFrom field is set. + */ + public boolean hasStartFrom() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return The startFrom. + */ + public com.google.protobuf.Timestamp getStartFrom() { + if (startFromBuilder_ == null) { + return startFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startFrom_; + } else { + return startFromBuilder_.getMessage(); + } + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public Builder setStartFrom(com.google.protobuf.Timestamp value) { + if (startFromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startFrom_ = value; + } else { + startFromBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public Builder setStartFrom( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startFromBuilder_ == null) { + startFrom_ = builderForValue.build(); + } else { + startFromBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public Builder mergeStartFrom(com.google.protobuf.Timestamp value) { + if (startFromBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + startFrom_ != null && + startFrom_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartFromBuilder().mergeFrom(value); + } else { + startFrom_ = value; + } + } else { + startFromBuilder_.mergeFrom(value); + } + if (startFrom_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public Builder clearStartFrom() { + bitField0_ = (bitField0_ & ~0x00000002); + startFrom_ = null; + if (startFromBuilder_ != null) { + startFromBuilder_.dispose(); + startFromBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public com.google.protobuf.Timestamp.Builder getStartFromBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartFromFieldBuilder().getBuilder(); + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + public com.google.protobuf.TimestampOrBuilder getStartFromOrBuilder() { + if (startFromBuilder_ != null) { + return startFromBuilder_.getMessageOrBuilder(); + } else { + return startFrom_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startFrom_; + } + } + /** + *
+     * start export from timestamp (UTC)
+     * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartFromFieldBuilder() { + if (startFromBuilder_ == null) { + startFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartFrom(), + getParentForChildren(), + isClean()); + startFrom_ = null; + } + return startFromBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.exporter.v3.ExportRequest) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.exporter.v3.ExportRequest) + private static final com.aserto.directory.exporter.v3.ExportRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.exporter.v3.ExportRequest(); + } + + public static com.aserto.directory.exporter.v3.ExportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExportRequestOrBuilder.java b/src/main/java/com/aserto/directory/exporter/v3/ExportRequestOrBuilder.java new file mode 100644 index 0000000..3b9fc10 --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExportRequestOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +public interface ExportRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.exporter.v3.ExportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * data export options mask
+   * 
+ * + * uint32 options = 1 [json_name = "options"]; + * @return The options. + */ + int getOptions(); + + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return Whether the startFrom field is set. + */ + boolean hasStartFrom(); + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + * @return The startFrom. + */ + com.google.protobuf.Timestamp getStartFrom(); + /** + *
+   * start export from timestamp (UTC)
+   * 
+ * + * .google.protobuf.Timestamp start_from = 20 [json_name = "startFrom"]; + */ + com.google.protobuf.TimestampOrBuilder getStartFromOrBuilder(); +} diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExportResponse.java b/src/main/java/com/aserto/directory/exporter/v3/ExportResponse.java new file mode 100644 index 0000000..a29364f --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExportResponse.java @@ -0,0 +1,820 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +/** + * Protobuf type {@code aserto.directory.exporter.v3.ExportResponse} + */ +public final class ExportResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aserto.directory.exporter.v3.ExportResponse) + ExportResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExportResponse.newBuilder() to construct. + private ExportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExportResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExportResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.exporter.v3.ExportResponse.class, com.aserto.directory.exporter.v3.ExportResponse.Builder.class); + } + + private int msgCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object msg_; + public enum MsgCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OBJECT(2), + RELATION(4), + MSG_NOT_SET(0); + private final int value; + private MsgCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MsgCase valueOf(int value) { + return forNumber(value); + } + + public static MsgCase forNumber(int value) { + switch (value) { + case 2: return OBJECT; + case 4: return RELATION; + case 0: return MSG_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MsgCase + getMsgCase() { + return MsgCase.forNumber( + msgCase_); + } + + public static final int OBJECT_FIELD_NUMBER = 2; + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return Whether the object field is set. + */ + @java.lang.Override + public boolean hasObject() { + return msgCase_ == 2; + } + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return The object. + */ + @java.lang.Override + public com.aserto.directory.common.v3.Object getObject() { + if (msgCase_ == 2) { + return (com.aserto.directory.common.v3.Object) msg_; + } + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + @java.lang.Override + public com.aserto.directory.common.v3.ObjectOrBuilder getObjectOrBuilder() { + if (msgCase_ == 2) { + return (com.aserto.directory.common.v3.Object) msg_; + } + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + + public static final int RELATION_FIELD_NUMBER = 4; + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return Whether the relation field is set. + */ + @java.lang.Override + public boolean hasRelation() { + return msgCase_ == 4; + } + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return The relation. + */ + @java.lang.Override + public com.aserto.directory.common.v3.Relation getRelation() { + if (msgCase_ == 4) { + return (com.aserto.directory.common.v3.Relation) msg_; + } + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + @java.lang.Override + public com.aserto.directory.common.v3.RelationOrBuilder getRelationOrBuilder() { + if (msgCase_ == 4) { + return (com.aserto.directory.common.v3.Relation) msg_; + } + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.aserto.directory.exporter.v3.ExportResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.aserto.directory.exporter.v3.ExportResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.aserto.directory.exporter.v3.ExportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.aserto.directory.exporter.v3.ExportResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code aserto.directory.exporter.v3.ExportResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aserto.directory.exporter.v3.ExportResponse) + com.aserto.directory.exporter.v3.ExportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.aserto.directory.exporter.v3.ExportResponse.class, com.aserto.directory.exporter.v3.ExportResponse.Builder.class); + } + + // Construct using com.aserto.directory.exporter.v3.ExportResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (objectBuilder_ != null) { + objectBuilder_.clear(); + } + if (relationBuilder_ != null) { + relationBuilder_.clear(); + } + msgCase_ = 0; + msg_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.aserto.directory.exporter.v3.ExporterProto.internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportResponse getDefaultInstanceForType() { + return com.aserto.directory.exporter.v3.ExportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportResponse build() { + com.aserto.directory.exporter.v3.ExportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportResponse buildPartial() { + com.aserto.directory.exporter.v3.ExportResponse result = new com.aserto.directory.exporter.v3.ExportResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.aserto.directory.exporter.v3.ExportResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.aserto.directory.exporter.v3.ExportResponse result) { + result.msgCase_ = msgCase_; + result.msg_ = this.msg_; + if (msgCase_ == 2 && + objectBuilder_ != null) { + result.msg_ = objectBuilder_.build(); + } + if (msgCase_ == 4 && + relationBuilder_ != null) { + result.msg_ = relationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + private int msgCase_ = 0; + private java.lang.Object msg_; + public MsgCase + getMsgCase() { + return MsgCase.forNumber( + msgCase_); + } + + public Builder clearMsg() { + msgCase_ = 0; + msg_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Object, com.aserto.directory.common.v3.Object.Builder, com.aserto.directory.common.v3.ObjectOrBuilder> objectBuilder_; + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return Whether the object field is set. + */ + @java.lang.Override + public boolean hasObject() { + return msgCase_ == 2; + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return The object. + */ + @java.lang.Override + public com.aserto.directory.common.v3.Object getObject() { + if (objectBuilder_ == null) { + if (msgCase_ == 2) { + return (com.aserto.directory.common.v3.Object) msg_; + } + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } else { + if (msgCase_ == 2) { + return objectBuilder_.getMessage(); + } + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + public Builder setObject(com.aserto.directory.common.v3.Object value) { + if (objectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + msg_ = value; + onChanged(); + } else { + objectBuilder_.setMessage(value); + } + msgCase_ = 2; + return this; + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + public Builder setObject( + com.aserto.directory.common.v3.Object.Builder builderForValue) { + if (objectBuilder_ == null) { + msg_ = builderForValue.build(); + onChanged(); + } else { + objectBuilder_.setMessage(builderForValue.build()); + } + msgCase_ = 2; + return this; + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + public Builder mergeObject(com.aserto.directory.common.v3.Object value) { + if (objectBuilder_ == null) { + if (msgCase_ == 2 && + msg_ != com.aserto.directory.common.v3.Object.getDefaultInstance()) { + msg_ = com.aserto.directory.common.v3.Object.newBuilder((com.aserto.directory.common.v3.Object) msg_) + .mergeFrom(value).buildPartial(); + } else { + msg_ = value; + } + onChanged(); + } else { + if (msgCase_ == 2) { + objectBuilder_.mergeFrom(value); + } else { + objectBuilder_.setMessage(value); + } + } + msgCase_ = 2; + return this; + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + public Builder clearObject() { + if (objectBuilder_ == null) { + if (msgCase_ == 2) { + msgCase_ = 0; + msg_ = null; + onChanged(); + } + } else { + if (msgCase_ == 2) { + msgCase_ = 0; + msg_ = null; + } + objectBuilder_.clear(); + } + return this; + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + public com.aserto.directory.common.v3.Object.Builder getObjectBuilder() { + return getObjectFieldBuilder().getBuilder(); + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + @java.lang.Override + public com.aserto.directory.common.v3.ObjectOrBuilder getObjectOrBuilder() { + if ((msgCase_ == 2) && (objectBuilder_ != null)) { + return objectBuilder_.getMessageOrBuilder(); + } else { + if (msgCase_ == 2) { + return (com.aserto.directory.common.v3.Object) msg_; + } + return com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + } + /** + *
+     * object instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Object, com.aserto.directory.common.v3.Object.Builder, com.aserto.directory.common.v3.ObjectOrBuilder> + getObjectFieldBuilder() { + if (objectBuilder_ == null) { + if (!(msgCase_ == 2)) { + msg_ = com.aserto.directory.common.v3.Object.getDefaultInstance(); + } + objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Object, com.aserto.directory.common.v3.Object.Builder, com.aserto.directory.common.v3.ObjectOrBuilder>( + (com.aserto.directory.common.v3.Object) msg_, + getParentForChildren(), + isClean()); + msg_ = null; + } + msgCase_ = 2; + onChanged(); + return objectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Relation, com.aserto.directory.common.v3.Relation.Builder, com.aserto.directory.common.v3.RelationOrBuilder> relationBuilder_; + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return Whether the relation field is set. + */ + @java.lang.Override + public boolean hasRelation() { + return msgCase_ == 4; + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return The relation. + */ + @java.lang.Override + public com.aserto.directory.common.v3.Relation getRelation() { + if (relationBuilder_ == null) { + if (msgCase_ == 4) { + return (com.aserto.directory.common.v3.Relation) msg_; + } + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } else { + if (msgCase_ == 4) { + return relationBuilder_.getMessage(); + } + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + public Builder setRelation(com.aserto.directory.common.v3.Relation value) { + if (relationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + msg_ = value; + onChanged(); + } else { + relationBuilder_.setMessage(value); + } + msgCase_ = 4; + return this; + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + public Builder setRelation( + com.aserto.directory.common.v3.Relation.Builder builderForValue) { + if (relationBuilder_ == null) { + msg_ = builderForValue.build(); + onChanged(); + } else { + relationBuilder_.setMessage(builderForValue.build()); + } + msgCase_ = 4; + return this; + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + public Builder mergeRelation(com.aserto.directory.common.v3.Relation value) { + if (relationBuilder_ == null) { + if (msgCase_ == 4 && + msg_ != com.aserto.directory.common.v3.Relation.getDefaultInstance()) { + msg_ = com.aserto.directory.common.v3.Relation.newBuilder((com.aserto.directory.common.v3.Relation) msg_) + .mergeFrom(value).buildPartial(); + } else { + msg_ = value; + } + onChanged(); + } else { + if (msgCase_ == 4) { + relationBuilder_.mergeFrom(value); + } else { + relationBuilder_.setMessage(value); + } + } + msgCase_ = 4; + return this; + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + public Builder clearRelation() { + if (relationBuilder_ == null) { + if (msgCase_ == 4) { + msgCase_ = 0; + msg_ = null; + onChanged(); + } + } else { + if (msgCase_ == 4) { + msgCase_ = 0; + msg_ = null; + } + relationBuilder_.clear(); + } + return this; + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + public com.aserto.directory.common.v3.Relation.Builder getRelationBuilder() { + return getRelationFieldBuilder().getBuilder(); + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + @java.lang.Override + public com.aserto.directory.common.v3.RelationOrBuilder getRelationOrBuilder() { + if ((msgCase_ == 4) && (relationBuilder_ != null)) { + return relationBuilder_.getMessageOrBuilder(); + } else { + if (msgCase_ == 4) { + return (com.aserto.directory.common.v3.Relation) msg_; + } + return com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + } + /** + *
+     * relation instance (data)
+     * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Relation, com.aserto.directory.common.v3.Relation.Builder, com.aserto.directory.common.v3.RelationOrBuilder> + getRelationFieldBuilder() { + if (relationBuilder_ == null) { + if (!(msgCase_ == 4)) { + msg_ = com.aserto.directory.common.v3.Relation.getDefaultInstance(); + } + relationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.aserto.directory.common.v3.Relation, com.aserto.directory.common.v3.Relation.Builder, com.aserto.directory.common.v3.RelationOrBuilder>( + (com.aserto.directory.common.v3.Relation) msg_, + getParentForChildren(), + isClean()); + msg_ = null; + } + msgCase_ = 4; + onChanged(); + return relationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:aserto.directory.exporter.v3.ExportResponse) + } + + // @@protoc_insertion_point(class_scope:aserto.directory.exporter.v3.ExportResponse) + private static final com.aserto.directory.exporter.v3.ExportResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.aserto.directory.exporter.v3.ExportResponse(); + } + + public static com.aserto.directory.exporter.v3.ExportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.aserto.directory.exporter.v3.ExportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExportResponseOrBuilder.java b/src/main/java/com/aserto/directory/exporter/v3/ExportResponseOrBuilder.java new file mode 100644 index 0000000..3ac8c13 --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExportResponseOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +public interface ExportResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:aserto.directory.exporter.v3.ExportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return Whether the object field is set. + */ + boolean hasObject(); + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + * @return The object. + */ + com.aserto.directory.common.v3.Object getObject(); + /** + *
+   * object instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Object object = 2 [json_name = "object"]; + */ + com.aserto.directory.common.v3.ObjectOrBuilder getObjectOrBuilder(); + + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return Whether the relation field is set. + */ + boolean hasRelation(); + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + * @return The relation. + */ + com.aserto.directory.common.v3.Relation getRelation(); + /** + *
+   * relation instance (data)
+   * 
+ * + * .aserto.directory.common.v3.Relation relation = 4 [json_name = "relation"]; + */ + com.aserto.directory.common.v3.RelationOrBuilder getRelationOrBuilder(); + + com.aserto.directory.exporter.v3.ExportResponse.MsgCase getMsgCase(); +} diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExporterGrpc.java b/src/main/java/com/aserto/directory/exporter/v3/ExporterGrpc.java new file mode 100644 index 0000000..dc55c9d --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExporterGrpc.java @@ -0,0 +1,286 @@ +package com.aserto.directory.exporter.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.59.0)", + comments = "Source: aserto/directory/exporter/v3/exporter.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExporterGrpc { + + private ExporterGrpc() {} + + public static final java.lang.String SERVICE_NAME = "aserto.directory.exporter.v3.Exporter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Export", + requestType = com.aserto.directory.exporter.v3.ExportRequest.class, + responseType = com.aserto.directory.exporter.v3.ExportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getExportMethod() { + io.grpc.MethodDescriptor getExportMethod; + if ((getExportMethod = ExporterGrpc.getExportMethod) == null) { + synchronized (ExporterGrpc.class) { + if ((getExportMethod = ExporterGrpc.getExportMethod) == null) { + ExporterGrpc.getExportMethod = getExportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Export")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.aserto.directory.exporter.v3.ExportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.aserto.directory.exporter.v3.ExportResponse.getDefaultInstance())) + .setSchemaDescriptor(new ExporterMethodDescriptorSupplier("Export")) + .build(); + } + } + } + return getExportMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ExporterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExporterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterStub(channel, callOptions); + } + }; + return ExporterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExporterBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExporterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterBlockingStub(channel, callOptions); + } + }; + return ExporterBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ExporterFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExporterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterFutureStub(channel, callOptions); + } + }; + return ExporterFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void export(com.aserto.directory.exporter.v3.ExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Exporter. + */ + public static abstract class ExporterImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ExporterGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Exporter. + */ + public static final class ExporterStub + extends io.grpc.stub.AbstractAsyncStub { + private ExporterStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExporterStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterStub(channel, callOptions); + } + + /** + */ + public void export(com.aserto.directory.exporter.v3.ExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getExportMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Exporter. + */ + public static final class ExporterBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExporterBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExporterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterBlockingStub(channel, callOptions); + } + + /** + */ + public java.util.Iterator export( + com.aserto.directory.exporter.v3.ExportRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getExportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Exporter. + */ + public static final class ExporterFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExporterFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExporterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExporterFutureStub(channel, callOptions); + } + } + + private static final int METHODID_EXPORT = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_EXPORT: + serviceImpl.export((com.aserto.directory.exporter.v3.ExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getExportMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.aserto.directory.exporter.v3.ExportRequest, + com.aserto.directory.exporter.v3.ExportResponse>( + service, METHODID_EXPORT))) + .build(); + } + + private static abstract class ExporterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExporterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.aserto.directory.exporter.v3.ExporterProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Exporter"); + } + } + + private static final class ExporterFileDescriptorSupplier + extends ExporterBaseDescriptorSupplier { + ExporterFileDescriptorSupplier() {} + } + + private static final class ExporterMethodDescriptorSupplier + extends ExporterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ExporterMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ExporterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExporterFileDescriptorSupplier()) + .addMethod(getExportMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/com/aserto/directory/exporter/v3/ExporterProto.java b/src/main/java/com/aserto/directory/exporter/v3/ExporterProto.java new file mode 100644 index 0000000..f1764a4 --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/ExporterProto.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +public final class ExporterProto { + private ExporterProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aserto_directory_exporter_v3_ExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aserto_directory_exporter_v3_ExportResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+aserto/directory/exporter/v3/exporter." + + "proto\022\034aserto.directory.exporter.v3\032\'ase" + + "rto/directory/common/v3/common.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"d\n\rExportR" + + "equest\022\030\n\007options\030\001 \001(\rR\007options\0229\n\nstar" + + "t_from\030\024 \001(\0132\032.google.protobuf.Timestamp" + + "R\tstartFrom\"\231\001\n\016ExportResponse\022<\n\006object" + + "\030\002 \001(\0132\".aserto.directory.common.v3.Obje" + + "ctH\000R\006object\022B\n\010relation\030\004 \001(\0132$.aserto." + + "directory.common.v3.RelationH\000R\010relation" + + "B\005\n\003msg*a\n\006Option\022\022\n\016OPTION_UNKNOWN\020\000\022\027\n" + + "\023OPTION_DATA_OBJECTS\020\010\022\031\n\025OPTION_DATA_RE" + + "LATIONS\020\020\022\017\n\013OPTION_DATA\020\0302s\n\010Exporter\022g" + + "\n\006Export\022+.aserto.directory.exporter.v3." + + "ExportRequest\032,.aserto.directory.exporte" + + "r.v3.ExportResponse\"\0000\001B\225\002\n com.aserto.d" + + "irectory.exporter.v3B\rExporterProtoH\002P\001Z" + + "Hgithub.com/aserto-dev/go-directory/aser" + + "to/directory/exporter/v3;exporter\370\001\000\242\002\003A" + + "DE\252\002\034Aserto.Directory.Exporter.V3\312\002\035Aser" + + "to\\Directory_\\Exporter\\V3\342\002)Aserto\\Direc" + + "tory_\\Exporter\\V3\\GPBMetadata\352\002\037Aserto::" + + "Directory::Exporter::V3b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.aserto.directory.common.v3.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aserto_directory_exporter_v3_ExportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aserto_directory_exporter_v3_ExportRequest_descriptor, + new java.lang.String[] { "Options", "StartFrom", }); + internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aserto_directory_exporter_v3_ExportResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aserto_directory_exporter_v3_ExportResponse_descriptor, + new java.lang.String[] { "Object", "Relation", "Msg", }); + com.aserto.directory.common.v3.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/com/aserto/directory/exporter/v3/Option.java b/src/main/java/com/aserto/directory/exporter/v3/Option.java new file mode 100644 index 0000000..bfe6c81 --- /dev/null +++ b/src/main/java/com/aserto/directory/exporter/v3/Option.java @@ -0,0 +1,164 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: aserto/directory/exporter/v3/exporter.proto + +// Protobuf Java Version: 3.25.0 +package com.aserto.directory.exporter.v3; + +/** + * Protobuf enum {@code aserto.directory.exporter.v3.Option} + */ +public enum Option + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * nothing selected (default initialization value)
+   * 
+ * + * OPTION_UNKNOWN = 0; + */ + OPTION_UNKNOWN(0), + /** + *
+   * object instances
+   * 
+ * + * OPTION_DATA_OBJECTS = 8; + */ + OPTION_DATA_OBJECTS(8), + /** + *
+   * relation instances
+   * 
+ * + * OPTION_DATA_RELATIONS = 16; + */ + OPTION_DATA_RELATIONS(16), + /** + *
+   * all data = OPTION_DATA_OBJECTS | OPTION_DATA_RELATIONS
+   * 
+ * + * OPTION_DATA = 24; + */ + OPTION_DATA(24), + UNRECOGNIZED(-1), + ; + + /** + *
+   * nothing selected (default initialization value)
+   * 
+ * + * OPTION_UNKNOWN = 0; + */ + public static final int OPTION_UNKNOWN_VALUE = 0; + /** + *
+   * object instances
+   * 
+ * + * OPTION_DATA_OBJECTS = 8; + */ + public static final int OPTION_DATA_OBJECTS_VALUE = 8; + /** + *
+   * relation instances
+   * 
+ * + * OPTION_DATA_RELATIONS = 16; + */ + public static final int OPTION_DATA_RELATIONS_VALUE = 16; + /** + *
+   * all data = OPTION_DATA_OBJECTS | OPTION_DATA_RELATIONS
+   * 
+ * + * OPTION_DATA = 24; + */ + public static final int OPTION_DATA_VALUE = 24; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + 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 Option 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 Option forNumber(int value) { + switch (value) { + case 0: return OPTION_UNKNOWN; + case 8: return OPTION_DATA_OBJECTS; + case 16: return OPTION_DATA_RELATIONS; + case 24: return OPTION_DATA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap