diff --git a/docs/grpc/index.html b/docs/grpc/index.html index 1a7b33f..0e50b3e 100644 --- a/docs/grpc/index.html +++ b/docs/grpc/index.html @@ -175,70 +175,97 @@
An action an entity can take
- - -Field | Type | Label | Description |
standard | -Action.StandardAction | -- |
|
-
custom | -string | -- |
|
-
Example Request Get Decisions to answer the question - Do Bob (represented by entity chain ec1)
and Alice (represented by entity chain ec2) have TRANSMIT authorization for
2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
{
"actions": [
{
"standard": "STANDARD_ACTION_TRANSMIT"
}
],
"entityChains": [
{
"id": "ec1",
"entities": [
{
"emailAddress": "bob@example.org"
}
]
},
{
"id": "ec2",
"entities": [
{
"userName": "alice@example.org"
}
]
}
],
"resourceAttributes": [
{
"attributeFqns": [
"https://www.example.org/attr/foo/value/value1"
]
},
{
"attributeFqns": [
"https://example.net/attr/attr1/value/value1",
"https://example.net/attr/attr1/value/value2"
]
}
]
}
- - -Field | Type | Label | Description |
actions | -Action | -repeated | -
|
-
entity_chains | -EntityChain | -repeated | -
|
-
resource_attributes | -ResourceAttribute | -repeated | -
|
-
Example response for a Decision Request - Do Bob (represented by entity chain ec1)
and Alice (represented by entity chain ec2) have TRANSMIT authorization for
2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
Results:
- bob has permitted authorization to transmit for a resource defined by attr-set-1 attributes and has a watermark obligation
- bob has denied authorization to transmit a for a resource defined by attr-set-2 attributes
- alice has permitted authorization to transmit for a resource defined by attr-set-1 attributes
- alice has denied authorization to transmit a for a resource defined by attr-set-2 attributes
{
"entityChainId": "ec1",
"resourceAttributesId": "attr-set-1",
"decision": "DECISION_PERMIT",
"obligations": [
"http://www.example.org/obligation/watermark"
]
},
{
"entityChainId": "ec1",
"resourceAttributesId": "attr-set-2",
"decision": "DECISION_PERMIT"
},
{
"entityChainId": "ec2",
"resourceAttributesId": "attr-set-1",
"decision": "DECISION_PERMIT"
},
{
"entityChainId": "ec2",
"resourceAttributesId": "attr-set-2",
"decision": "DECISION_DENY"
}
+Struct to uniquely identify a resource with optional additional metadata
entity_chain_id | -string | -- | ephemeral entity chain id from the request |
- ||||||||||||||||||||||||||||||||||||||||
resource_attributes_id | -string | -- | ephemeral resource attributes id from the request |
- ||||||||||||||||||||||||||||||||||||||||
action | -Action | +created_at | +google.protobuf.Timestamp | - | Action of the decision response |
+ created_at set by server (entity who created will recorded in an audit event) |
|||||||||||||||||||||||||||||||||||||
decision | -DecisionResponse.Decision | +updated_at | +google.protobuf.Timestamp | - | The decision response |
+ updated_at set by server (entity who updated will recorded in an audit event) |
|||||||||||||||||||||||||||||||||||||
obligations | -string | +labels | +Metadata.LabelsEntry | repeated | -optional list of obligations represented in URI format |
+ optional short description |
id | -string | -- | ephemeral id for tracking between request and response |
- |
email_address | -string | -- |
|
- |
user_name | -string | -- |
|
- |
remote_claims_url | +key | string |
|
|
jwt | +value | string |
|
|
claims | -google.protobuf.Any | -- |
|
- |
custom | -EntityCustom | -- |
|
-
A set of related PE and NPE
+id | -string | -- | ephemeral id for tracking between request and response |
- ||
entities | -Entity | +labels | +MetadataMutable.LabelsEntry | repeated | -
|
-
Entity type for custom entities beyond the standard types
- - -Field | Type | Label | Description | |
extension | -google.protobuf.Any | -- |
|
+ optional labels |
entity_id | +key | string |
|
|
attribute_id | +value | string | -repeated | -
|
-
Field | Type | Label | Description |
decision_requests | -DecisionRequest | -repeated | -
|
-
Field | Type | Label | Description |
decision_responses | -DecisionResponse | -repeated | -
|
-
Request to get entitlements for one or more entities for an optional attribute scope
Example: Get entitlements for bob and alice (both represented using an email address
{
"entities": [
{
"id": "e1",
"emailAddress": "bob@example.org"
},
{
"id": "e2",
"emailAddress": "alice@example.org"
}
]
}
- - -Field | Type | Label | Description |
entities | -Entity | -repeated | -list of requested entities |
-
scope | -ResourceAttribute | -optional | -optional attribute fqn as a scope |
-
Example Response for a request of : Get entitlements for bob and alice (both represented using an email address
{
"entitlements": [
{
"entityId": "e1",
"attributeValueReferences": [
{
"attributeFqn": "http://www.example.org/attr/foo/value/bar"
}
]
},
{
"entityId": "e2",
"attributeValueReferences": [
{
"attributeFqn": "http://www.example.org/attr/color/value/red"
}
]
}
]
}
- - -Field | Type | Label | Description |
entitlements | -EntityEntitlements | -repeated | -
|
-
A logical bucket of attributes belonging to a "Resource"
- - -Field | Type | Label | Description | ||||||||||||||||||||||||||||||||||||||||
attribute_fqns | -string | -repeated | +
|
Name | Number | Description | |
STANDARD_ACTION_UNSPECIFIED | +ACTIVE_STATE_ENUM_UNSPECIFIED | 0 | |
STANDARD_ACTION_DECRYPT | +ACTIVE_STATE_ENUM_ACTIVE | 1 | |
STANDARD_ACTION_TRANSMIT | +ACTIVE_STATE_ENUM_INACTIVE | 2 | |
ACTIVE_STATE_ENUM_ANY | +3 | ++ |
DECISION_UNSPECIFIED | +METADATA_UPDATE_ENUM_UNSPECIFIED | 0 | -+ | unspecified update type |
|||||||||||||||||||||||||||||||||||||||
DECISION_DENY | +METADATA_UPDATE_ENUM_EXTEND | 1 | -+ | only update the fields that are provided |
|||||||||||||||||||||||||||||||||||||||
DECISION_PERMIT | +METADATA_UPDATE_ENUM_REPLACE | 2 | -+ | replace the entire metadata with the provided metadata |
Method Name | Request Type | Response Type | Description |
GetDecisions | -GetDecisionsRequest | -GetDecisionsResponse | -- |
GetEntitlements | -GetEntitlementsRequest | -GetEntitlementsResponse | -- |
Method Name | -Method | -Pattern | -Body | -
GetDecisions | -POST | -/v1/authorization | -- |
GetEntitlements | -POST | -/v1/entitlements | -- |
Required
Common metadata
ephemeral entity id from the request
Example: Get idp attributes for bob and alice (both represented using an email address
{
"entities": [
{
"id": "e1",
"emailAddress": "bob@example.org"
},
{
"id": "e2",
"emailAddress": "alice@example.org"
}
]
}
+entities | -Entity | -repeated | +key_access_server | +KeyAccessServer | +
|
entity_representations | -IdpEntityRepresentation | -repeated | +id | +string | +
|
created_at | -google.protobuf.Timestamp | -- | created_at set by server (entity who created will recorded in an audit event) |
- ||||||||||||||||||||||||||||||||||||||||
updated_at | -google.protobuf.Timestamp | +key_access_server | +KeyAccessServer | - | updated_at set by server (entity who updated will recorded in an audit event) |
- ||||||||||||||||||||||||||||||||||||||
labels | -Metadata.LabelsEntry | -repeated | -optional short description |
+
|
key | +id | string |
|
|
value | +uri | string | + | Address of a KAS instance |
+
public_key | +PublicKey | +
|
||
metadata | +common.Metadata | ++ | Common metadata |
+
optional labels
kas public key url - optional since can also be retrieved via public key
public key - optional since can also be retrieved via url
buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
-Name | Number | Description |
ACTIVE_STATE_ENUM_UNSPECIFIED | -0 | -- |
ACTIVE_STATE_ENUM_ACTIVE | -1 | -- |
ACTIVE_STATE_ENUM_INACTIVE | -2 | -- |
ACTIVE_STATE_ENUM_ANY | -3 | -- |
Name | Number | Description |
METADATA_UPDATE_ENUM_UNSPECIFIED | -0 | -unspecified update type |
-
METADATA_UPDATE_ENUM_EXTEND | -1 | -only update the fields that are provided |
-
METADATA_UPDATE_ENUM_REPLACE | -2 | -replace the entire metadata with the provided metadata |
-
Intentionally empty. May include features later.
- - - - - -Service application level metadata
version | +id | string | - |
|
+ Required |
Field | Type | Label | Description | |
algorithm | +uri | string |
|
Field | Type | Label | Description | |||
algorithm | -string | +public_key | +PublicKey |
|
||
fmt | -string | +metadata | +common.MetadataMutable | - |
|
+ Common metadata |
v | -string | +metadata_update_behavior | +common.MetadataUpdateEnum |
|
||
public_key | -string | -- |
|
-
Field | Type | Label | Description |
signed_request_token | -string | -- |
|
-
bearer | -string | -- |
|
-
Field | Type | Label | Description |
metadata | -RewrapResponse.MetadataEntry | -repeated | -
|
-
entity_wrapped_key | -bytes | -- |
|
-
session_public_key | -string | -- |
|
-
schema_version | -string | -- |
|
-
Field | Type | Label | Description | ||||||||||||||||||||||||||||||||||||||||
key | -string | -- |
|
- ||||||||||||||||||||||||||||||||||||||||
value | -google.protobuf.Value | +key_access_server | +KeyAccessServer |
|
Method Name | Request Type | Response Type | Description | ||||
Info | -InfoRequest | -InfoResponse | -Get the current version of the service |
+ ListKeyAccessServers | +ListKeyAccessServersRequest | +ListKeyAccessServersResponse | +|
PublicKey | -PublicKeyRequest | -PublicKeyResponse | +GetKeyAccessServer | +GetKeyAccessServerRequest | +GetKeyAccessServerResponse | ||
LegacyPublicKey | -LegacyPublicKeyRequest | -.google.protobuf.StringValue | -buf:lint:ignore RPC_RESPONSE_STANDARD_NAME |
+ CreateKeyAccessServer | +CreateKeyAccessServerRequest | +CreateKeyAccessServerResponse | +|
Rewrap | -RewrapRequest | -RewrapResponse | +UpdateKeyAccessServer | +UpdateKeyAccessServerRequest | +UpdateKeyAccessServerResponse | ++ | |
DeleteKeyAccessServer | +DeleteKeyAccessServerRequest | +DeleteKeyAccessServerResponse | |||||
Info | +ListKeyAccessServers | GET | -/ | +/key-access-servers | |||
PublicKey | +GetKeyAccessServer | GET | -/v2/kas_public_key | +/key-access-servers/{id} | |||
LegacyPublicKey | -GET | -/kas_public_key | -+ | CreateKeyAccessServer | +POST | +/key-access-servers | +* |
Rewrap | -POST | -/v2/rewrap | +UpdateKeyAccessServer | +PUT | +/key-access-servers/{id} | * | |
DeleteKeyAccessServer | +DELETE | +/key-access-servers/{id} | ++ |
An action an entity can take
uri | -string | -- | Required |
- |||
public_key | -PublicKey | +standard | +Action.StandardAction |
|
||
metadata | -common.MetadataMutable | +custom | +string | - | Common metadata |
+
|
key_access_server | -KeyAccessServer | +id | +string |
|
Field | Type | Label | Description | ||
namespace | +Namespace | ++ | namespace of the attribute |
+ ||
id | +name | string | - |
|
+ attribute name |
Field | Type | Label | Description | ||
key_access_server | -KeyAccessServer | +rule | +AttributeRuleTypeEnum | + | attribute rule enum |
+
values | +Value | +repeated |
|
||
grants | +kasregistry.KeyAccessServer | +repeated | +
|
+ ||
fqn | +string | ++ |
|
+ ||
active | +google.protobuf.BoolValue | ++ | active by default until explicitly deactivated |
+ ||
metadata | +common.Metadata | ++ | Common metadata |
+
A Condition defines a rule of
Example: Subjects with field "division" and a value of "Accounting" or "Marketing":
{
"subject_external_field": "division",
"operator": "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
"subject_external_values" : ["Accounting", "Marketing"]
}
Example: Subjects that are not part of the Fantastic Four:
{
"subject_external_field": "superhero_name",
"operator": "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN",
"subject_external_values" : ["mister_fantastic", "the_thing", "human_torch", "invisible_woman"]
}
id | +subject_external_field | string | - |
|
+ externally known field name (such as from idP/LDAP) |
+ ||||||||||||||||||||||||||||||||||||||
operator | +SubjectMappingOperatorEnum | ++ | the evaluation operator of relation |
+ ||||||||||||||||||||||||||||||||||||||||
subject_external_values | +string | +repeated | +list of comparison values for the subject_external_field, evaluated by the operator |
key_access_server | -KeyAccessServer | -+ | conditions | +Condition | +repeated |
|
boolean_operator | +ConditionBooleanTypeEnum | ++ | the boolean evaluation type across the conditions |
+
Descriptor for a KAS
+id | string | - |
|
+ generated uuid in database |
|||||||||||||||||||||||||||||||||||||||
uri | +name | string | - | Address of a KAS instance |
+ used to partition Attribute Definitions, support by namespace AuthN and enable federation |
||||||||||||||||||||||||||||||||||||||
public_key | -PublicKey | +fqn | +string |
|
|||||||||||||||||||||||||||||||||||||||
active | +google.protobuf.BoolValue | ++ | active by default until explicitly deactivated |
+ ||||||||||||||||||||||||||||||||||||||||
metadata | common.Metadata | - | Common metadata |
+
|
key_access_servers | -KeyAccessServer | +id | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||
metadata | +common.Metadata | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
attribute_value | +Value | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
terms | +string | repeated |
|
remote | +id | string | - | kas public key url - optional since can also be retrieved via public key |
+
|
||||||||||||||||||||||||||||||||||||||
local | -string | +subject_sets | +SubjectSet | +repeated | +
|
+ ||||||||||||||||||||||||||||||||||||||
metadata | +common.Metadata | - | public key - optional since can also be retrieved via url |
+
|
id | string | - | Required |
+
|
|||||||||||||||||||||||||||||||||||||||
uri | -string | +attribute_value | +Value | - |
|
+ the Attribute Value mapped to; aka: "The Entity Entitlement Attribute" |
|||||||||||||||||||||||||||||||||||||
public_key | -PublicKey | +subject_condition_set | +SubjectConditionSet | - |
|
+ the reusable SubjectConditionSet mapped to the given Attribute Value |
|||||||||||||||||||||||||||||||||||||
metadata | -common.MetadataMutable | -- | Common metadata |
+ actions | +Action | +repeated | +The actions permitted by subjects in this mapping |
||||||||||||||||||||||||||||||||||||
metadata_update_behavior | -common.MetadataUpdateEnum | +metadata | +common.Metadata |
|
key_access_server | -KeyAccessServer | +external_field | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||
external_value | +string |
|
Field | Type | Label | Description |
condition_groups | +ConditionGroup | +repeated | +multiple Condition Groups are evaluated with AND logic |
+
Method Name | Request Type | Response Type | Description |
ListKeyAccessServers | -ListKeyAccessServersRequest | -ListKeyAccessServersResponse | -- |
GetKeyAccessServer | -GetKeyAccessServerRequest | -GetKeyAccessServerResponse | -- |
CreateKeyAccessServer | -CreateKeyAccessServerRequest | -CreateKeyAccessServerResponse | -- |
UpdateKeyAccessServer | -UpdateKeyAccessServerRequest | -UpdateKeyAccessServerResponse | -- |
DeleteKeyAccessServer | -DeleteKeyAccessServerRequest | -DeleteKeyAccessServerResponse | -- |
Method Name | -Method | -Pattern | -Body | -
Field | Type | Label | Description |
ListKeyAccessServers | -GET | -/key-access-servers | -- |
id | +string | ++ | generated uuid in database |
+
attribute | +Attribute | ++ |
|
+
value | +string | ++ |
|
+
GetKeyAccessServer | -GET | -/key-access-servers/{id} | -- |
members | +string | +repeated | +list of attribute values that this value is related to (attribute group) |
+
grants | +kasregistry.KeyAccessServer | +repeated | +list of key access servers |
+
fqn | +string | ++ |
|
+
CreateKeyAccessServer | -POST | -/key-access-servers | -* | -
active | +google.protobuf.BoolValue | ++ | active by default until explicitly deactivated |
+
subject_mappings | +SubjectMapping | +repeated | +subject mapping |
+
metadata | +common.Metadata | ++ | Common metadata |
+
Standard actions supported by the platform
+Name | Number | Description | ||||
UpdateKeyAccessServer | -PUT | -/key-access-servers/{id} | -* | +STANDARD_ACTION_UNSPECIFIED | +0 | +|
DeleteKeyAccessServer | -DELETE | -/key-access-servers/{id} | -+ | STANDARD_ACTION_DECRYPT | +1 | +
buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
+Name | Number | Description |
ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED | +0 | ++ |
ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF | +1 | ++ |
ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF | +2 | ++ |
ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY | +3 | ++ |
buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
+Name | Number | Description |
CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED | +0 | ++ |
CONDITION_BOOLEAN_TYPE_ENUM_AND | +1 | ++ |
CONDITION_BOOLEAN_TYPE_ENUM_OR | +2 | ++ |
buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
+Name | Number | Description |
SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED | +0 | ++ |
SUBJECT_MAPPING_OPERATOR_ENUM_IN | +1 | ++ |
SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN | +2 | ++ |
Example Request Get Decisions to answer the question - Do Bob (represented by entity chain ec1)
and Alice (represented by entity chain ec2) have TRANSMIT authorization for
2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
{
"actions": [
{
"standard": "STANDARD_ACTION_TRANSMIT"
}
],
"entityChains": [
{
"id": "ec1",
"entities": [
{
"emailAddress": "bob@example.org"
}
]
},
{
"id": "ec2",
"entities": [
{
"userName": "alice@example.org"
}
]
}
],
"resourceAttributes": [
{
"attributeFqns": [
"https://www.example.org/attr/foo/value/value1"
]
},
{
"attributeFqns": [
"https://example.net/attr/attr1/value/value1",
"https://example.net/attr/attr1/value/value2"
]
}
]
}
name | -string | -- | Required |
+ actions | +policy.Action | +repeated | +
|
metadata | -common.MetadataMutable | -- | Optional |
+ entity_chains | +EntityChain | +repeated | +
|
+
resource_attributes | +ResourceAttribute | +repeated | +
|
namespace | -Namespace | +entity_chain_id | +string | - |
|
+ ephemeral entity chain id from the request |
ephemeral resource attributes id from the request
Action of the decision response
The decision response
optional list of obligations represented in URI format
PE (Person Entity) or NPE (Non-Person Entity)
id | string | + | ephemeral id for tracking between request and response |
+
+
+ ||||||||||||||||||||||||||||||||||||||||
email_address | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
user_name | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
remote_claims_url | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
jwt | +string | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
claims | +google.protobuf.Any | ++ |
|
+ ||||||||||||||||||||||||||||||||||||||||
custom | +EntityCustom | +
|
id | string | + | ephemeral id for tracking between request and response |
+
+
+ ||||||||||||||||||||||||||||||||||||||||
entities | +Entity | +repeated |
|
namespace | -Namespace | +extension | +google.protobuf.Any |
|
|||||||||||||||||||||||||||||||||||||||
state | -common.ActiveStateEnum | +entity_id | +string | - | ACTIVE by default when not specified |
+
|
+ |||||||||||||||||||||||||||||||||||||
attribute_id | +string | +repeated | +
|
||||||||||||||||||||||||||||||||||||||||
namespaces | -Namespace | +decision_requests | +DecisionRequest | repeated |
|
||||||||||||||||||||||||||||||||||||||
id | -string | -- | generated uuid in database |
- ||||||||||||||||||||||||||||||||||||||||
name | -string | -- | used to partition Attribute Definitions, support by namespace AuthN and enable federation |
- ||||||||||||||||||||||||||||||||||||||||
fqn | -string | -- |
|
- ||||||||||||||||||||||||||||||||||||||||
active | -google.protobuf.BoolValue | -- | active by default until explicitly deactivated |
- ||||||||||||||||||||||||||||||||||||||||
metadata | -common.Metadata | -+ | decision_responses | +DecisionResponse | +repeated |
|
id | -string | -- | Required |
+ entities | +Entity | +repeated | +list of requested entities |
metadata | -common.MetadataMutable | -- | Optional |
+ scope | +ResourceAttribute | +optional | +optional attribute fqn as a scope |
Example Response for a request of : Get entitlements for bob and alice (both represented using an email address
{
"entitlements": [
{
"entityId": "e1",
"attributeValueReferences": [
{
"attributeFqn": "http://www.example.org/attr/foo/value/bar"
}
]
},
{
"entityId": "e2",
"attributeValueReferences": [
{
"attributeFqn": "http://www.example.org/attr/color/value/red"
}
]
}
]
}
+ + +Field | Type | Label | Description | ||||
metadata_update_behavior | -common.MetadataUpdateEnum | -+ | entitlements | +EntityEntitlements | +repeated |
|
namespace | -Namespace | -+ | attribute_fqns | +string | +repeated |
|
Method Name | Request Type | Response Type | Description | ||
Name | Number | Description | |||
GetNamespace | -GetNamespaceRequest | -GetNamespaceResponse | +DECISION_UNSPECIFIED | +0 | |
ListNamespaces | -ListNamespacesRequest | -ListNamespacesResponse | +DECISION_DENY | +1 | |
CreateNamespace | -CreateNamespaceRequest | -CreateNamespaceResponse | +DECISION_PERMIT | +2 |
Method Name | Request Type | Response Type | Description | |||
UpdateNamespace | -UpdateNamespaceRequest | -UpdateNamespaceResponse | +GetDecisions | +GetDecisionsRequest | +GetDecisionsResponse | |
DeactivateNamespace | -DeactivateNamespaceRequest | -DeactivateNamespaceResponse | +GetEntitlements | +GetEntitlementsRequest | +GetEntitlementsResponse | |
GetNamespace | -GET | -/attributes/namespaces/{id} | -- | |||
ListNamespaces | -GET | -/attributes/namespaces | +GetDecisions | +POST | +/v1/authorization | |
CreateNamespace | +GetEntitlements | POST | -/attributes/namespaces | -* | -||
UpdateNamespace | -PATCH | -/attributes/namespaces/{id} | -* | -|||
DeactivateNamespace | -DELETE | -/attributes/namespaces/{id} | +/v1/entitlements | |||
attribute_key_access_server | -AttributeKeyAccessServer | +code | +int32 | ++ |
|
+ |
message | +string | ++ |
|
+ |||
details | +google.protobuf.Any | +repeated | +
|
+ |||
entity | +string |
|
||||
attribute_key_access_server | -AttributeKeyAccessServer | +config | +google.protobuf.Struct |
|
||
value_key_access_server | -ValueKeyAccessServer | -+ | additional_props | +google.protobuf.Struct | +repeated |
|
original_id | +string | ++ | ephemeral entity id from the request |
+
Example: Get idp attributes for bob and alice (both represented using an email address
{
"entities": [
{
"id": "e1",
"emailAddress": "bob@example.org"
},
{
"id": "e2",
"emailAddress": "alice@example.org"
}
]
}
value_key_access_server | -ValueKeyAccessServer | -+ | entities | +Entity | +repeated |
|
id | -string | -- |
|
- ||
namespace | -policy.namespaces.Namespace | -- | namespace of the attribute |
- ||
name | -string | -- | attribute name |
- ||
rule | -AttributeRuleTypeEnum | -- | attribute rule enum |
- ||
values | -Value | -repeated | -
|
- ||
grants | -kasregistry.KeyAccessServer | +entity_representations | +IdpEntityRepresentation | repeated |
|
fqn | -string | -- |
|
- ||
active | -google.protobuf.BoolValue | -- | active by default until explicitly deactivated |
- ||
metadata | -common.Metadata | -- | Common metadata |
-
Intentionally empty. May include features later.
+ + + + + +Service application level metadata
attribute | -Attribute | -- |
|
- ||
value | -Value | +version | +string |
|
|
attribute_id | -string | -- |
|
- ||
key_access_server_id | +algorithm | string |
|
@@ -3252,7 +2944,7 @@ ||
namespace_id | +algorithm | string | - | Required |
+
|
name | +fmt | string |
|
||
rule | -AttributeRuleTypeEnum | +v | +string |
|
|
metadata | -common.MetadataMutable | -- | Optional |
-
Required
Optional
Common metadata
Get app info from the root path
+Method Name | Request Type | Response Type | Description |
Info | +InfoRequest | +InfoResponse | +Get the current version of the service |
+
PublicKey | +PublicKeyRequest | +PublicKeyResponse | ++ |
LegacyPublicKey | +LegacyPublicKeyRequest | +.google.protobuf.StringValue | +buf:lint:ignore RPC_RESPONSE_STANDARD_NAME |
+
Rewrap | +RewrapRequest | +RewrapResponse | ++ |
Field | Type | Label | Description |
Method Name | +Method | +Pattern | +Body | +
attribute | -Attribute | -- |
|
-
Info | +GET | +/ | ++ |
PublicKey | +GET | +/v2/kas_public_key | ++ |
LegacyPublicKey | +GET | +/kas_public_key | ++ |
Rewrap | +POST | +/v2/rewrap | +* | +
Value RPC messages
/
+id | -string | +with_key_access_grants | +bool | ++ |
|
+ ||
with_subject_maps | +bool | ++ |
|
+ ||||
with_resource_maps | +bool |
|
|||||
value | -Value | +with_key_access_grants | +bool | ++ |
|
+ ||
with_subject_maps | +bool | ++ |
|
+ ||||
with_resource_maps | +bool | ++ |
|
+ ||||
with_attribute | +AttributeValueSelector.AttributeSelector |
|
|||||
fqns | -string | -repeated | +with_key_access_grants | +bool | ++ |
|
+ |
with_namespace | +AttributeValueSelector.AttributeSelector.NamespaceSelector | +
|
|||||
fqn_attribute_values | -GetAttributesByValueFqnsResponse.FqnAttributeValuesEntry | -repeated | -map of fqns to complete attributes and the one selected value |
+ attribute_key_access_server | +AttributeKeyAccessServer | ++ |
|
attribute_key_access_server | +AttributeKeyAccessServer |
|
+
Field | Type | Label | Description | |||
value | -AttributeAndValue | +value_key_access_server | +ValueKeyAccessServer |
|
Field | Type | Label | Description |
value_key_access_server | +ValueKeyAccessServer | ++ |
|
+
ACTIVE by default when not specified
Required
Optional
Field | Type | Label | Description |
attribute | +policy.Attribute | ++ |
|
+
Field | Type | Label | Description |
attribute_id | +string | ++ | Required |
+
value | +string | ++ |
|
+
members | +string | repeated | +Optional |
+
metadata | +common.MetadataMutable | ++ | Common metadata |
+
Field | Type | Label | Description |
value | +policy.Value | ++ |
|
+
Field | Type | Label | Description |
id | +string | ++ |
|
+
Field | Type | Label | Description |
attribute | +policy.Attribute | ++ |
|
+
Field | Type | Label | Description |
id | +string | +
|
Field | Type | Label | Description |
Field | Type | Label | Description |
value | +policy.Value | ++ |
|
+
Field | Type | Label | Description |
id | +string | ++ |
|
+
Field | Type | Label | Description |
attribute | +policy.Attribute | ++ |
|
+
Value RPC messages
/
+ + +Field | Type | Label | Description |
id | +string | ++ |
|
+
Field | Type | Label | Description |
value | +policy.Value | ++ |
|
+
Field | Type | Label | Description |
fqns | +string | +repeated | +Required |
+
with_value | +policy.AttributeValueSelector | ++ |
|
+
Field | Type | Label | Description |
fqn_attribute_values | +GetAttributeValuesByFqnsResponse.FqnAttributeValuesEntry | +repeated | +map of fqns to complete attributes and the one selected value |
+
Field | Type | Label | Description |
attribute | +policy.Attribute | ++ |
|
+
value | +policy.Value | ++ |
|
+
Field | Type | Label | Description |
key | +string | ++ |
|
+
value | +GetAttributeValuesByFqnsResponse.AttributeAndValue | ++ |
|
+
Field | Type | Label | Description |
attribute_id | +string | ++ |
|
+
state | +common.ActiveStateEnum | ++ | ACTIVE by default when not specified |
+
Field | Type | Label | Description |
values | +policy.Value | +repeated | +
|
+
Field | Type | Label | Description |
state | +common.ActiveStateEnum | ++ | ACTIVE by default when not specified |
+
Field | Type | Label | Description |
attributes | +policy.Attribute | +repeated | +
|
+
Field | Type | Label | Description |
attribute_key_access_server | +AttributeKeyAccessServer | ++ |
|
+
Field | Type | Label | Description |
attribute_key_access_server | +AttributeKeyAccessServer | ++ |
|
+
Field | Type | Label | Description |
value_key_access_server | +ValueKeyAccessServer | ++ |
|
+
Field | Type | Label | Description |
value_key_access_server | +ValueKeyAccessServer | ++ |
|
+
Field | Type | Label | Description |
id | +string | ++ | Required |
+
metadata | +common.MetadataMutable | ++ | Optional |
+
metadata_update_behavior | +common.MetadataUpdateEnum | ++ |
|
+
Field | Type | Label | Description |
attribute | +policy.Attribute | ++ |
|
+
Field | Type | Label | Description |
id | +string | ++ |
|
+
members | +string | +repeated | +Optional |
+
metadata | +common.MetadataMutable | ++ | Common metadata |
+
metadata_update_behavior | +common.MetadataUpdateEnum | ++ |
|
+
Field | Type | Label | Description |
value | +policy.Value | ++ |
|
+
Field | Type | Label | Description |
value_id | +string | ++ |
|
+
key_access_server_id | +string | ++ |
|
+
Attribute Service
/
+Method Name | Request Type | Response Type | Description |
ListAttributes | +ListAttributesRequest | +ListAttributesResponse | +--------------------------------------* +Attribute RPCs +--------------------------------------- |
+
ListAttributeValues | +ListAttributeValuesRequest | +ListAttributeValuesResponse | ++ |
GetAttribute | +GetAttributeRequest | +GetAttributeResponse | ++ |
GetAttributeValuesByFqns | +GetAttributeValuesByFqnsRequest | +GetAttributeValuesByFqnsResponse | ++ |
CreateAttribute | +CreateAttributeRequest | +CreateAttributeResponse | ++ |
UpdateAttribute | +UpdateAttributeRequest | +UpdateAttributeResponse | ++ |
DeactivateAttribute | +DeactivateAttributeRequest | +DeactivateAttributeResponse | ++ |
GetAttributeValue | +GetAttributeValueRequest | +GetAttributeValueResponse | +--------------------------------------* +Value RPCs +--------------------------------------- |
+
CreateAttributeValue | +CreateAttributeValueRequest | +CreateAttributeValueResponse | ++ |
UpdateAttributeValue | +UpdateAttributeValueRequest | +UpdateAttributeValueResponse | ++ |
DeactivateAttributeValue | +DeactivateAttributeValueRequest | +DeactivateAttributeValueResponse | ++ |
AssignKeyAccessServerToAttribute | +AssignKeyAccessServerToAttributeRequest | +AssignKeyAccessServerToAttributeResponse | +--------------------------------------* +Attribute <> Key Access Server RPCs +--------------------------------------- |
+
RemoveKeyAccessServerFromAttribute | +RemoveKeyAccessServerFromAttributeRequest | +RemoveKeyAccessServerFromAttributeResponse | ++ |
AssignKeyAccessServerToValue | +AssignKeyAccessServerToValueRequest | +AssignKeyAccessServerToValueResponse | ++ |
RemoveKeyAccessServerFromValue | +RemoveKeyAccessServerFromValueRequest | +RemoveKeyAccessServerFromValueResponse | ++ |
Method Name | +Method | +Pattern | +Body | +
GetAttribute | +GET | +/attributes/{id} | ++ |
GetAttributeValuesByFqns | +GET | +/attributes/*/fqn | ++ |
CreateAttribute | +POST | +/attributes | +* | +
UpdateAttribute | +PATCH | +/attributes/{id} | +* | +
DeactivateAttribute | +DELETE | +/attributes/{id} | ++ |
GetAttributeValue | +GET | +/attributes/*/values/{id} | ++ |
CreateAttributeValue | +POST | +/attributes/{attribute_id}/values | +* | +
UpdateAttributeValue | +PATCH | +/attributes/*/values/{id} | +* | +
DeactivateAttributeValue | +DELETE | +/attributes/*/values/{id} | ++ |
AssignKeyAccessServerToAttribute | +POST | +/attributes/keyaccessserver/assign | +attribute_key_access_server | +
RemoveKeyAccessServerFromAttribute | +POST | +/attributes/keyaccessserver/remove | +attribute_key_access_server | +
AssignKeyAccessServerToValue | +POST | +/attributes/values/keyaccessserver/assign | +value_key_access_server | +
state | -common.ActiveStateEnum | -- | ACTIVE by default when not specified |
-
RemoveKeyAccessServerFromValue | +POST | +/attributes/values/keyaccessserver/remove | +value_key_access_server | +
Required
Field | Type | Label | Description | |||
attribute_key_access_server | -AttributeKeyAccessServer | +metadata | +common.MetadataMutable | - |
|
+ Optional |
attribute_key_access_server | -AttributeKeyAccessServer | +namespace | +policy.Namespace |
|
||
value_key_access_server | -ValueKeyAccessServer | +id | +string |
|
Field | Type | Label | Description |
value_key_access_server | -ValueKeyAccessServer | -- |
|
-
Required
Optional
Optional
Common metadata
ACTIVE by default when not specified
generated uuid in database
Required
list of attribute values that this value is related to (attribute group)
list of key access servers
Optional
active by default until explicitly deactivated
Common metadata
buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
-Name | Number | Description |
ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED | -0 | -- |
ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF | -1 | -- |
ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF | -2 | -- |
ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY | -3 | -- |
Attribute Service
/
+ + +Method Name | Request Type | Response Type | Description | |||
ListAttributes | -ListAttributesRequest | -ListAttributesResponse | ---------------------------------------* -Attribute RPCs ---------------------------------------- |
- |||
ListAttributeValues | -ListAttributeValuesRequest | -ListAttributeValuesResponse | -- | |||
GetAttribute | -GetAttributeRequest | -GetAttributeResponse | -- | |||
GetAttributesByValueFqns | -GetAttributesByValueFqnsRequest | -GetAttributesByValueFqnsResponse | -- | |||
CreateAttribute | -CreateAttributeRequest | -CreateAttributeResponse | -- | |||
UpdateAttribute | -UpdateAttributeRequest | -UpdateAttributeResponse | -- | |||
DeactivateAttribute | -DeactivateAttributeRequest | -DeactivateAttributeResponse | -- | |||
GetAttributeValue | -GetAttributeValueRequest | -GetAttributeValueResponse | ---------------------------------------* -Value RPCs ---------------------------------------- |
- |||
CreateAttributeValue | -CreateAttributeValueRequest | -CreateAttributeValueResponse | -- | |||
UpdateAttributeValue | -UpdateAttributeValueRequest | -UpdateAttributeValueResponse | +GetNamespace | +GetNamespaceRequest | +GetNamespaceResponse | |
DeactivateAttributeValue | -DeactivateAttributeValueRequest | -DeactivateAttributeValueResponse | +ListNamespaces | +ListNamespacesRequest | +ListNamespacesResponse | |
AssignKeyAccessServerToAttribute | -AssignKeyAccessServerToAttributeRequest | -AssignKeyAccessServerToAttributeResponse | ---------------------------------------* -Attribute <> Key Access Server RPCs ---------------------------------------- |
- |||
RemoveKeyAccessServerFromAttribute | -RemoveKeyAccessServerFromAttributeRequest | -RemoveKeyAccessServerFromAttributeResponse | +CreateNamespace | +CreateNamespaceRequest | +CreateNamespaceResponse | |
AssignKeyAccessServerToValue | -AssignKeyAccessServerToValueRequest | -AssignKeyAccessServerToValueResponse | +UpdateNamespace | +UpdateNamespaceRequest | +UpdateNamespaceResponse | |
RemoveKeyAccessServerFromValue | -RemoveKeyAccessServerFromValueRequest | -RemoveKeyAccessServerFromValueResponse | +DeactivateNamespace | +DeactivateNamespaceRequest | +DeactivateNamespaceResponse | |
GetAttribute | -GET | -/attributes/{id} | -- | |||
GetAttributesByValueFqns | +GetNamespace | GET | -/attributes/*/fqn | -- | ||
CreateAttribute | -POST | -/attributes | -* | -|||
UpdateAttribute | -PATCH | -/attributes/{id} | -* | -|||
DeactivateAttribute | -DELETE | -/attributes/{id} | +/attributes/namespaces/{id} | |||
GetAttributeValue | +ListNamespaces | GET | -/attributes/*/values/{id} | +/attributes/namespaces | ||
CreateAttributeValue | +CreateNamespace | POST | -/attributes/{attribute_id}/values | +/attributes/namespaces | * | |
UpdateAttributeValue | +UpdateNamespace | PATCH | -/attributes/*/values/{id} | +/attributes/namespaces/{id} | * | |
DeactivateAttributeValue | +DeactivateNamespace | DELETE | -/attributes/*/values/{id} | +/attributes/namespaces/{id} | ||
AssignKeyAccessServerToAttribute | -POST | -/attributes/keyaccessserver/assign | -attribute_key_access_server | -|||
RemoveKeyAccessServerFromAttribute | -POST | -/attributes/keyaccessserver/remove | -attribute_key_access_server | -|||
AssignKeyAccessServerToValue | -POST | -/attributes/values/keyaccessserver/assign | -value_key_access_server | -|||
RemoveKeyAccessServerFromValue | -POST | -/attributes/values/keyaccessserver/remove | -value_key_access_server | -
### Request
grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping < { "mapping": { "name": "Classification", "attribute_value_id": "12345678-1234-1234-1234-123456789012", "terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"] } } EOM ### Response { "mapping": { "metadata": { "id": "12345678-1234-1234-1234-123456789012", "created_at": "2020-01-01T00:00:00Z", "updated_at": "2020-01-01T00:00:00Z" }, "name": "Classification", "attribute_value_id": "12345678-1234-1234-1234-123456789012", "terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"] } } # Resource Mappings (aka Access Control Resource Encodings aka ACRE): Structures supporting Resources and Attributes mappings ## Examples ### Where attributeId is an id of the following attribute FQN: http://demo.com/attr/Classification/value/Confidential UUID: 12345678-1234-1234-1234-123456789012 ### Request grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping < { "mapping": { "name": "Classification", "attribute_value_id": "12345678-1234-1234-1234-123456789012", "terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"] } } EOM ### Response { "mapping": { "metadata": { "id": "12345678-1234-1234-1234-123456789012", "created_at": "2020-01-01T00:00:00Z", "updated_at": "2020-01-01T00:00:00Z" }, "name": "Classification", "attribute_value_id": "12345678-1234-1234-1234-123456789012", "terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"] } } A Condition defines a rule of Example: Subjects with field "division" and a value of "Accounting" or "Marketing": { "subject_external_field": "division", "operator": "SUBJECT_MAPPING_OPERATOR_ENUM_IN", "subject_external_values" : ["Accounting", "Marketing"] } Example: Subjects that are not part of the Fantastic Four: { "subject_external_field": "superhero_name", "operator": "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN", "subject_external_values" : ["mister_fantastic", "the_thing", "human_torch", "invisible_woman"] } externally known field name (such as from idP/LDAP) the evaluation operator of relation list of comparison values for the subject_external_field, evaluated by the operator A collection of Conditions evaluated by the boolean_operator provided the boolean evaluation type across the conditions The actions permitted by subjects in this mapping Only ID of deleted Subject Condition Set provided Only ID of the updated Subject Mapping provided contextualized Subject Mappings associated with this SubjectConditionSet A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple Subject Mappings / Attribute Values and is an independent unit. Required Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one with permitted actions TRANSMIT and DECRYPT { "id": "someid", "attribute_value": {example_one_attribute_value...}, "subject_condition_set": {"subject_sets":[{subject_set_1},{subject_set_2}]...}, "actions": [{"standard": "STANDARD_ACTION_DECRYPT"}", {"standard": "STANDARD_ACTION_TRANSMIT"}] } the Attribute Value mapped to; aka: "The Entity Entitlement Attribute" the reusable SubjectConditionSet mapped to the given Attribute Value The actions permitted by subjects in this mapping A property of a Subject/Entity as a field->value pair. This would mirror external user attributes retrieved from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc. For now, a valid property must contain both field & value. A collection of Condition Groups multiple Condition Groups are evaluated with AND logic Optional
If provided, replaces entire existing structure of Subject Sets, Condition Groups, & Conditions Only ID of updated Subject Condition Set provided Replaces entire list of actions permitted by subjects Only ID of the updated Subject Mapping provided buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
@@ -4465,7 +5141,7 @@
-
-
-
-
-
- CreateResourceMapp
@@ -4513,7 +5189,7 @@ resource_mapping
- ResourceMapping
+ policy.ResourceMapping
DeleteResourceMapp
@@ -4561,7 +5237,7 @@ resource_mapping
- ResourceMapping
+ policy.ResourceMapping
GetResourceMappingRes
@@ -4592,52 +5268,7 @@ resource_mapping
- ResourceMapping
+ policy.ResourceMapping
ListResourceMapping
-
-
- resource_mappings
- ResourceMapping
- repeated
-
- ResourceMapping
-
-
-
-
-
-
- Field Type Label Description
-
-
- id
- string
-
-
-
-
-
- metadata
- common.Metadata
-
-
-
-
-
- attribute_value
- policy.attributes.Value
-
-
-
-
@@ -4713,7 +5344,7 @@ terms
- string
+ policy.ResourceMapping
repeated
UpdateResourceMapp
-
@@ -5033,75 +5664,6 @@ resource_mapping
- ResourceMapping
+ policy.ResourceMapping
policy/subjectmapping/subje
Condition
-
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
- subject_external_field
- string
-
-
-
-
-
- operator
- SubjectMappingOperatorEnum
-
-
-
-
-
-
- subject_external_values
- string
- repeated
-
- ConditionGroup
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
- conditions
- Condition
- repeated
-
-
-
-
-
- boolean_operator
- ConditionBooleanTypeEnum
-
-
- CreateSubjectConditionSetRequest
@@ -5138,7 +5700,7 @@ CreateSubjectCo
@@ -5170,7 +5732,7 @@ subject_condition_set
- SubjectConditionSet
+ policy.SubjectConditionSet
CreateSubjectMappingR
@@ -5216,7 +5778,7 @@ actions
- authorization.Action
+ policy.Action
repeated
CreateSubjectMapping
@@ -5264,7 +5826,7 @@ subject_mapping
- SubjectMapping
+ policy.SubjectMapping
DeleteSubjectCo
@@ -5312,7 +5874,7 @@ subject_condition_set
- SubjectConditionSet
+ policy.SubjectConditionSet
DeleteSubjectMapping
@@ -5360,14 +5922,14 @@ subject_mapping
- SubjectMapping
+ policy.SubjectMapping
GetSubjectConditio
subject_condition_set
- SubjectConditionSet
+ policy.SubjectConditionSet
@@ -5415,7 +5977,7 @@ associated_subject_mappings
- SubjectMapping
+ policy.SubjectMapping
repeated
GetSubjectMappingRespon
@@ -5446,7 +6008,7 @@ subject_mapping
- SubjectMapping
+ policy.SubjectMapping
ListSubjectCondi
@@ -5477,7 +6039,7 @@ subject_condition_sets
- SubjectConditionSet
+ policy.SubjectConditionSet
repeated
ListSubjectMappingsRe
@@ -5501,7 +6063,7 @@ subject_mappings
- SubjectMapping
+ policy.SubjectMapping
repeated
MatchSubjectMappingsR
@@ -5525,7 +6087,7 @@ subject_properties
- SubjectProperty
+ policy.SubjectProperty
repeated
MatchSubjectMappings
@@ -5537,44 +6099,6 @@ subject_mappings
- SubjectMapping
+ policy.SubjectMapping
repeated
MatchSubjectMappings
-
SubjectConditionSet
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
- id
- string
-
-
-
-
-
- subject_sets
- SubjectSet
- repeated
-
-
-
-
-
- metadata
- common.Metadata
-
-
- SubjectConditionSetCreate
@@ -5587,7 +6111,7 @@ SubjectConditionSetCrea
@@ -5607,113 +6131,6 @@ subject_sets
- SubjectSet
+ policy.SubjectSet
repeated
SubjectConditionSetCrea
-
SubjectMapping
-
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
- id
- string
-
-
-
-
-
- attribute_value
- policy.attributes.Value
-
-
-
-
-
- subject_condition_set
- SubjectConditionSet
-
-
-
-
-
- actions
- authorization.Action
- repeated
-
-
-
-
-
- metadata
- common.Metadata
-
-
- SubjectProperty
-
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
- external_field
- string
-
-
-
-
-
-
- external_value
- string
-
-
- SubjectSet
-
-
-
-
-
-
-
-
-
-
-
- Field Type Label Description
-
-
-
- condition_groups
- ConditionGroup
- repeated
-
- UpdateSubjectConditionSetRequest
@@ -5733,7 +6150,7 @@ UpdateSubjectCon
subject_sets
- SubjectSet
+ policy.SubjectSet
repeated
@@ -5772,7 +6189,7 @@ UpdateSubjectCo
@@ -5811,7 +6228,7 @@ subject_condition_set
- SubjectConditionSet
+ policy.SubjectConditionSet
UpdateSubjectMappingR
@@ -5849,7 +6266,7 @@ actions
- authorization.Action
+ policy.Action
repeated
UpdateSubjectMapping
@@ -5863,64 +6280,6 @@ subject_mapping
- SubjectMapping
+ policy.SubjectMapping
UpdateSubjectMapping
-
ConditionBooleanTypeEnum
-
-
-
-
-
-
-
-
- Name Number Description
-
-
- CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED
- 0
-
-
-
-
- CONDITION_BOOLEAN_TYPE_ENUM_AND
- 1
-
-
-
-
-
- CONDITION_BOOLEAN_TYPE_ENUM_OR
- 2
-
- SubjectMappingOperatorEnum
-
-
-
-
diff --git a/docs/openapi/authorization/authorization.swagger.json b/docs/openapi/authorization/authorization.swagger.json
index 436fbc0..45c366c 100644
--- a/docs/openapi/authorization/authorization.swagger.json
+++ b/docs/openapi/authorization/authorization.swagger.json
@@ -93,18 +93,6 @@
],
"default": "DECISION_UNSPECIFIED"
},
- "authorizationAction": {
- "type": "object",
- "properties": {
- "standard": {
- "$ref": "#/definitions/ActionStandardAction"
- },
- "custom": {
- "type": "string"
- }
- },
- "title": "An action an entity can take"
- },
"authorizationDecisionRequest": {
"type": "object",
"properties": {
@@ -112,7 +100,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/authorizationAction"
+ "$ref": "#/definitions/policyAction"
}
},
"entityChains": {
@@ -145,7 +133,7 @@
"title": "ephemeral resource attributes id from the request"
},
"action": {
- "$ref": "#/definitions/authorizationAction",
+ "$ref": "#/definitions/policyAction",
"title": "Action of the decision response"
},
"decision": {
@@ -269,6 +257,18 @@
},
"title": "A logical bucket of attributes belonging to a \"Resource\""
},
+ "policyAction": {
+ "type": "object",
+ "properties": {
+ "standard": {
+ "$ref": "#/definitions/ActionStandardAction"
+ },
+ "custom": {
+ "type": "string"
+ }
+ },
+ "title": "An action an entity can take"
+ },
"protobufAny": {
"type": "object",
"properties": {
diff --git a/docs/openapi/policy/attributes/attributes.swagger.json b/docs/openapi/policy/attributes/attributes.swagger.json
index 8b5d369..126cf13 100644
--- a/docs/openapi/policy/attributes/attributes.swagger.json
+++ b/docs/openapi/policy/attributes/attributes.swagger.json
@@ -50,12 +50,12 @@
},
"/attributes/*/fqn": {
"get": {
- "operationId": "AttributesService_GetAttributesByValueFqns",
+ "operationId": "AttributesService_GetAttributeValuesByFqns",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
- "$ref": "#/definitions/attributesGetAttributesByValueFqnsResponse"
+ "$ref": "#/definitions/attributesGetAttributeValuesByFqnsResponse"
}
},
"default": {
@@ -68,6 +68,7 @@
"parameters": [
{
"name": "fqns",
+ "description": "Required",
"in": "query",
"required": false,
"type": "array",
@@ -75,6 +76,30 @@
"type": "string"
},
"collectionFormat": "multi"
+ },
+ {
+ "name": "withValue.withKeyAccessGrants",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
+ },
+ {
+ "name": "withValue.withSubjectMaps",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
+ },
+ {
+ "name": "withValue.withResourceMaps",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
+ },
+ {
+ "name": "withValue.withAttribute.withKeyAccessGrants",
+ "in": "query",
+ "required": false,
+ "type": "boolean"
}
],
"tags": [
@@ -483,75 +508,43 @@
}
},
"definitions": {
- "attributesAssignKeyAccessServerToAttributeResponse": {
- "type": "object",
- "properties": {
- "attributeKeyAccessServer": {
- "$ref": "#/definitions/attributesAttributeKeyAccessServer"
- }
- }
+ "ActionStandardAction": {
+ "type": "string",
+ "enum": [
+ "STANDARD_ACTION_UNSPECIFIED",
+ "STANDARD_ACTION_DECRYPT",
+ "STANDARD_ACTION_TRANSMIT"
+ ],
+ "default": "STANDARD_ACTION_UNSPECIFIED",
+ "title": "Standard actions supported by the platform"
},
- "attributesAssignKeyAccessServerToValueResponse": {
+ "AttributeValueSelectorAttributeSelectorNamespaceSelector": {
+ "type": "object"
+ },
+ "GetAttributeValuesByFqnsResponseAttributeAndValue": {
"type": "object",
"properties": {
- "valueKeyAccessServer": {
- "$ref": "#/definitions/attributesValueKeyAccessServer"
+ "attribute": {
+ "$ref": "#/definitions/policyAttribute"
+ },
+ "value": {
+ "$ref": "#/definitions/policyValue"
}
}
},
- "attributesAttribute": {
+ "attributesAssignKeyAccessServerToAttributeResponse": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "namespace": {
- "$ref": "#/definitions/namespacesNamespace",
- "title": "namespace of the attribute"
- },
- "name": {
- "type": "string",
- "title": "attribute name"
- },
- "rule": {
- "$ref": "#/definitions/attributesAttributeRuleTypeEnum",
- "title": "attribute rule enum"
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/policyattributesValue"
- }
- },
- "grants": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/kasregistryKeyAccessServer"
- }
- },
- "fqn": {
- "type": "string"
- },
- "active": {
- "type": "boolean",
- "title": "active by default until explicitly deactivated"
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata",
- "title": "Common metadata"
+ "attributeKeyAccessServer": {
+ "$ref": "#/definitions/attributesAttributeKeyAccessServer"
}
}
},
- "attributesAttributeAndValue": {
+ "attributesAssignKeyAccessServerToValueResponse": {
"type": "object",
"properties": {
- "attribute": {
- "$ref": "#/definitions/attributesAttribute"
- },
- "value": {
- "$ref": "#/definitions/policyattributesValue"
+ "valueKeyAccessServer": {
+ "$ref": "#/definitions/attributesValueKeyAccessServer"
}
}
},
@@ -566,17 +559,6 @@
}
}
},
- "attributesAttributeRuleTypeEnum": {
- "type": "string",
- "enum": [
- "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
- ],
- "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
- },
"attributesCreateAttributeRequest": {
"type": "object",
"properties": {
@@ -588,7 +570,7 @@
"type": "string"
},
"rule": {
- "$ref": "#/definitions/attributesAttributeRuleTypeEnum"
+ "$ref": "#/definitions/policyAttributeRuleTypeEnum"
},
"metadata": {
"$ref": "#/definitions/commonMetadataMutable",
@@ -600,7 +582,7 @@
"type": "object",
"properties": {
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
}
}
},
@@ -608,7 +590,7 @@
"type": "object",
"properties": {
"value": {
- "$ref": "#/definitions/policyattributesValue"
+ "$ref": "#/definitions/policyValue"
}
}
},
@@ -616,7 +598,7 @@
"type": "object",
"properties": {
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
}
}
},
@@ -624,7 +606,7 @@
"type": "object",
"properties": {
"value": {
- "$ref": "#/definitions/policyattributesValue"
+ "$ref": "#/definitions/policyValue"
}
}
},
@@ -632,7 +614,7 @@
"type": "object",
"properties": {
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
}
}
},
@@ -640,17 +622,17 @@
"type": "object",
"properties": {
"value": {
- "$ref": "#/definitions/policyattributesValue"
+ "$ref": "#/definitions/policyValue"
}
}
},
- "attributesGetAttributesByValueFqnsResponse": {
+ "attributesGetAttributeValuesByFqnsResponse": {
"type": "object",
"properties": {
"fqnAttributeValues": {
"type": "object",
"additionalProperties": {
- "$ref": "#/definitions/attributesAttributeAndValue"
+ "$ref": "#/definitions/GetAttributeValuesByFqnsResponseAttributeAndValue"
},
"title": "map of fqns to complete attributes and the one selected value"
}
@@ -663,7 +645,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/policyattributesValue"
+ "$ref": "#/definitions/policyValue"
}
}
}
@@ -675,7 +657,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
}
}
}
@@ -700,7 +682,7 @@
"type": "object",
"properties": {
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
}
}
},
@@ -708,7 +690,7 @@
"type": "object",
"properties": {
"value": {
- "$ref": "#/definitions/policyattributesValue"
+ "$ref": "#/definitions/policyValue"
}
}
},
@@ -812,7 +794,152 @@
}
}
},
- "namespacesNamespace": {
+ "policyAction": {
+ "type": "object",
+ "properties": {
+ "standard": {
+ "$ref": "#/definitions/ActionStandardAction"
+ },
+ "custom": {
+ "type": "string"
+ }
+ },
+ "title": "An action an entity can take"
+ },
+ "policyAttribute": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "namespace": {
+ "$ref": "#/definitions/policyNamespace",
+ "title": "namespace of the attribute"
+ },
+ "name": {
+ "type": "string",
+ "title": "attribute name"
+ },
+ "rule": {
+ "$ref": "#/definitions/policyAttributeRuleTypeEnum",
+ "title": "attribute rule enum"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyValue"
+ }
+ },
+ "grants": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/kasregistryKeyAccessServer"
+ }
+ },
+ "fqn": {
+ "type": "string"
+ },
+ "active": {
+ "type": "boolean",
+ "title": "active by default until explicitly deactivated"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata",
+ "title": "Common metadata"
+ }
+ }
+ },
+ "policyAttributeRuleTypeEnum": {
+ "type": "string",
+ "enum": [
+ "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
+ ],
+ "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyAttributeValueSelector": {
+ "type": "object",
+ "properties": {
+ "withKeyAccessGrants": {
+ "type": "boolean"
+ },
+ "withSubjectMaps": {
+ "type": "boolean"
+ },
+ "withResourceMaps": {
+ "type": "boolean"
+ },
+ "withAttribute": {
+ "$ref": "#/definitions/policyAttributeValueSelectorAttributeSelector"
+ }
+ }
+ },
+ "policyAttributeValueSelectorAttributeSelector": {
+ "type": "object",
+ "properties": {
+ "withKeyAccessGrants": {
+ "type": "boolean"
+ },
+ "withNamespace": {
+ "$ref": "#/definitions/AttributeValueSelectorAttributeSelectorNamespaceSelector"
+ }
+ }
+ },
+ "policyCondition": {
+ "type": "object",
+ "properties": {
+ "subjectExternalField": {
+ "type": "string",
+ "title": "externally known field name (such as from idP/LDAP)"
+ },
+ "operator": {
+ "$ref": "#/definitions/policySubjectMappingOperatorEnum",
+ "title": "the evaluation operator of relation"
+ },
+ "subjectExternalValues": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "list of comparison values for the subject_external_field, evaluated by the operator"
+ }
+ },
+ "description": "Example: Subjects with field \"division\" and a value of \"Accounting\" or \"Marketing\":\n{\n\"subject_external_field\": \"division\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_IN\",\n\"subject_external_values\" : [\"Accounting\", \"Marketing\"]\n}\n\nExample: Subjects that are not part of the Fantastic Four:\n{\n\"subject_external_field\": \"superhero_name\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN\",\n\"subject_external_values\" : [\"mister_fantastic\", \"the_thing\", \"human_torch\", \"invisible_woman\"]\n}",
+ "title": "*\nA Condition defines a rule of \u003csubject external field name\u003e \u003coperator\u003e \u003csubject external values\u003e"
+ },
+ "policyConditionBooleanTypeEnum": {
+ "type": "string",
+ "enum": [
+ "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "CONDITION_BOOLEAN_TYPE_ENUM_AND",
+ "CONDITION_BOOLEAN_TYPE_ENUM_OR"
+ ],
+ "default": "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyConditionGroup": {
+ "type": "object",
+ "properties": {
+ "conditions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyCondition"
+ }
+ },
+ "booleanOperator": {
+ "$ref": "#/definitions/policyConditionBooleanTypeEnum",
+ "title": "the boolean evaluation type across the conditions"
+ }
+ },
+ "title": "A collection of Conditions evaluated by the boolean_operator provided"
+ },
+ "policyNamespace": {
"type": "object",
"properties": {
"id": {
@@ -835,7 +962,79 @@
}
}
},
- "policyattributesValue": {
+ "policySubjectConditionSet": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "subjectSets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectSet"
+ }
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet\nare evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple\nSubject Mappings / Attribute Values and is an independent unit."
+ },
+ "policySubjectMapping": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "attributeValue": {
+ "$ref": "#/definitions/policyValue",
+ "title": "the Attribute Value mapped to; aka: \"The Entity Entitlement Attribute\""
+ },
+ "subjectConditionSet": {
+ "$ref": "#/definitions/policySubjectConditionSet",
+ "title": "the reusable SubjectConditionSet mapped to the given Attribute Value"
+ },
+ "actions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyAction"
+ },
+ "title": "The actions permitted by subjects in this mapping"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one\nwith permitted actions TRANSMIT and DECRYPT\n{\n\"id\": \"someid\",\n\"attribute_value\": {example_one_attribute_value...},\n\"subject_condition_set\": {\"subject_sets\":[{subject_set_1},{subject_set_2}]...},\n\"actions\": [{\"standard\": \"STANDARD_ACTION_DECRYPT\"}\", {\"standard\": \"STANDARD_ACTION_TRANSMIT\"}]\n}",
+ "title": "Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination"
+ },
+ "policySubjectMappingOperatorEnum": {
+ "type": "string",
+ "enum": [
+ "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN"
+ ],
+ "default": "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policySubjectSet": {
+ "type": "object",
+ "properties": {
+ "conditionGroups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyConditionGroup"
+ },
+ "title": "multiple Condition Groups are evaluated with AND logic"
+ }
+ },
+ "title": "A collection of Condition Groups"
+ },
+ "policyValue": {
"type": "object",
"properties": {
"id": {
@@ -843,7 +1042,7 @@
"title": "generated uuid in database"
},
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
},
"value": {
"type": "string"
@@ -870,6 +1069,14 @@
"type": "boolean",
"title": "active by default until explicitly deactivated"
},
+ "subjectMappings": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectMapping"
+ },
+ "title": "subject mapping"
+ },
"metadata": {
"$ref": "#/definitions/commonMetadata",
"title": "Common metadata"
diff --git a/docs/openapi/policy/common/selectors.swagger.json b/docs/openapi/policy/common/selectors.swagger.json
new file mode 100644
index 0000000..a34b8ee
--- /dev/null
+++ b/docs/openapi/policy/common/selectors.swagger.json
@@ -0,0 +1,46 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "policy/common/selectors.proto",
+ "version": "version not set"
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {},
+ "definitions": {
+ "protobufAny": {
+ "type": "object",
+ "properties": {
+ "@type": {
+ "type": "string",
+ "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
+ }
+ },
+ "additionalProperties": {},
+ "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
+ },
+ "rpcStatus": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/protobufAny"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/docs/openapi/policy/namespaces/namespaces.swagger.json b/docs/openapi/policy/namespaces/namespaces.swagger.json
index ee5487b..c864e0e 100644
--- a/docs/openapi/policy/namespaces/namespaces.swagger.json
+++ b/docs/openapi/policy/namespaces/namespaces.swagger.json
@@ -263,7 +263,7 @@
"type": "object",
"properties": {
"namespace": {
- "$ref": "#/definitions/namespacesNamespace"
+ "$ref": "#/definitions/policyNamespace"
}
}
},
@@ -274,7 +274,7 @@
"type": "object",
"properties": {
"namespace": {
- "$ref": "#/definitions/namespacesNamespace"
+ "$ref": "#/definitions/policyNamespace"
}
}
},
@@ -285,12 +285,20 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/namespacesNamespace"
+ "$ref": "#/definitions/policyNamespace"
}
}
}
},
- "namespacesNamespace": {
+ "namespacesUpdateNamespaceResponse": {
+ "type": "object",
+ "properties": {
+ "namespace": {
+ "$ref": "#/definitions/policyNamespace"
+ }
+ }
+ },
+ "policyNamespace": {
"type": "object",
"properties": {
"id": {
@@ -313,14 +321,6 @@
}
}
},
- "namespacesUpdateNamespaceResponse": {
- "type": "object",
- "properties": {
- "namespace": {
- "$ref": "#/definitions/namespacesNamespace"
- }
- }
- },
"protobufAny": {
"type": "object",
"properties": {
diff --git a/docs/openapi/policy/objects.swagger.json b/docs/openapi/policy/objects.swagger.json
new file mode 100644
index 0000000..efccb95
--- /dev/null
+++ b/docs/openapi/policy/objects.swagger.json
@@ -0,0 +1,46 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "policy/objects.proto",
+ "version": "version not set"
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {},
+ "definitions": {
+ "protobufAny": {
+ "type": "object",
+ "properties": {
+ "@type": {
+ "type": "string",
+ "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
+ }
+ },
+ "additionalProperties": {},
+ "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
+ },
+ "rpcStatus": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/protobufAny"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/docs/openapi/policy/resourcemapping/resource_mapping.swagger.json b/docs/openapi/policy/resourcemapping/resource_mapping.swagger.json
index 8278710..4fd9884 100644
--- a/docs/openapi/policy/resourcemapping/resource_mapping.swagger.json
+++ b/docs/openapi/policy/resourcemapping/resource_mapping.swagger.json
@@ -60,6 +60,7 @@
"parameters": [
{
"name": "body",
+ "description": "grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping \u003c\u003cEOM\n{\n\"mapping\": {\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}\nEOM\n\n### Response\n\n{\n\"mapping\": {\n\"metadata\": {\n\"id\": \"12345678-1234-1234-1234-123456789012\",\n\"created_at\": \"2020-01-01T00:00:00Z\",\n\"updated_at\": \"2020-01-01T00:00:00Z\"\n},\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}",
"in": "body",
"required": true,
"schema": {
@@ -194,61 +195,15 @@
}
},
"definitions": {
- "attributesAttribute": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "namespace": {
- "$ref": "#/definitions/namespacesNamespace",
- "title": "namespace of the attribute"
- },
- "name": {
- "type": "string",
- "title": "attribute name"
- },
- "rule": {
- "$ref": "#/definitions/attributesAttributeRuleTypeEnum",
- "title": "attribute rule enum"
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/policyattributesValue"
- }
- },
- "grants": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/kasregistryKeyAccessServer"
- }
- },
- "fqn": {
- "type": "string"
- },
- "active": {
- "type": "boolean",
- "title": "active by default until explicitly deactivated"
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata",
- "title": "Common metadata"
- }
- }
- },
- "attributesAttributeRuleTypeEnum": {
+ "ActionStandardAction": {
"type": "string",
"enum": [
- "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
+ "STANDARD_ACTION_UNSPECIFIED",
+ "STANDARD_ACTION_DECRYPT",
+ "STANDARD_ACTION_TRANSMIT"
],
- "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ "default": "STANDARD_ACTION_UNSPECIFIED",
+ "title": "Standard actions supported by the platform"
},
"commonMetadata": {
"type": "object",
@@ -328,7 +283,124 @@
}
}
},
- "namespacesNamespace": {
+ "policyAction": {
+ "type": "object",
+ "properties": {
+ "standard": {
+ "$ref": "#/definitions/ActionStandardAction"
+ },
+ "custom": {
+ "type": "string"
+ }
+ },
+ "title": "An action an entity can take"
+ },
+ "policyAttribute": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "namespace": {
+ "$ref": "#/definitions/policyNamespace",
+ "title": "namespace of the attribute"
+ },
+ "name": {
+ "type": "string",
+ "title": "attribute name"
+ },
+ "rule": {
+ "$ref": "#/definitions/policyAttributeRuleTypeEnum",
+ "title": "attribute rule enum"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyValue"
+ }
+ },
+ "grants": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/kasregistryKeyAccessServer"
+ }
+ },
+ "fqn": {
+ "type": "string"
+ },
+ "active": {
+ "type": "boolean",
+ "title": "active by default until explicitly deactivated"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata",
+ "title": "Common metadata"
+ }
+ }
+ },
+ "policyAttributeRuleTypeEnum": {
+ "type": "string",
+ "enum": [
+ "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
+ ],
+ "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyCondition": {
+ "type": "object",
+ "properties": {
+ "subjectExternalField": {
+ "type": "string",
+ "title": "externally known field name (such as from idP/LDAP)"
+ },
+ "operator": {
+ "$ref": "#/definitions/policySubjectMappingOperatorEnum",
+ "title": "the evaluation operator of relation"
+ },
+ "subjectExternalValues": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "list of comparison values for the subject_external_field, evaluated by the operator"
+ }
+ },
+ "description": "Example: Subjects with field \"division\" and a value of \"Accounting\" or \"Marketing\":\n{\n\"subject_external_field\": \"division\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_IN\",\n\"subject_external_values\" : [\"Accounting\", \"Marketing\"]\n}\n\nExample: Subjects that are not part of the Fantastic Four:\n{\n\"subject_external_field\": \"superhero_name\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN\",\n\"subject_external_values\" : [\"mister_fantastic\", \"the_thing\", \"human_torch\", \"invisible_woman\"]\n}",
+ "title": "*\nA Condition defines a rule of \u003csubject external field name\u003e \u003coperator\u003e \u003csubject external values\u003e"
+ },
+ "policyConditionBooleanTypeEnum": {
+ "type": "string",
+ "enum": [
+ "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "CONDITION_BOOLEAN_TYPE_ENUM_AND",
+ "CONDITION_BOOLEAN_TYPE_ENUM_OR"
+ ],
+ "default": "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyConditionGroup": {
+ "type": "object",
+ "properties": {
+ "conditions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyCondition"
+ }
+ },
+ "booleanOperator": {
+ "$ref": "#/definitions/policyConditionBooleanTypeEnum",
+ "title": "the boolean evaluation type across the conditions"
+ }
+ },
+ "title": "A collection of Conditions evaluated by the boolean_operator provided"
+ },
+ "policyNamespace": {
"type": "object",
"properties": {
"id": {
@@ -351,7 +423,100 @@
}
}
},
- "policyattributesValue": {
+ "policyResourceMapping": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ },
+ "attributeValue": {
+ "$ref": "#/definitions/policyValue"
+ },
+ "terms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "title": "Resource Mappings (aka Access Control Resource Encodings aka ACRE) are structures supporting the mapping of Resources and Attribute Values"
+ },
+ "policySubjectConditionSet": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "subjectSets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectSet"
+ }
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet\nare evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple\nSubject Mappings / Attribute Values and is an independent unit."
+ },
+ "policySubjectMapping": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "attributeValue": {
+ "$ref": "#/definitions/policyValue",
+ "title": "the Attribute Value mapped to; aka: \"The Entity Entitlement Attribute\""
+ },
+ "subjectConditionSet": {
+ "$ref": "#/definitions/policySubjectConditionSet",
+ "title": "the reusable SubjectConditionSet mapped to the given Attribute Value"
+ },
+ "actions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyAction"
+ },
+ "title": "The actions permitted by subjects in this mapping"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one\nwith permitted actions TRANSMIT and DECRYPT\n{\n\"id\": \"someid\",\n\"attribute_value\": {example_one_attribute_value...},\n\"subject_condition_set\": {\"subject_sets\":[{subject_set_1},{subject_set_2}]...},\n\"actions\": [{\"standard\": \"STANDARD_ACTION_DECRYPT\"}\", {\"standard\": \"STANDARD_ACTION_TRANSMIT\"}]\n}",
+ "title": "Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination"
+ },
+ "policySubjectMappingOperatorEnum": {
+ "type": "string",
+ "enum": [
+ "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN"
+ ],
+ "default": "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policySubjectSet": {
+ "type": "object",
+ "properties": {
+ "conditionGroups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyConditionGroup"
+ },
+ "title": "multiple Condition Groups are evaluated with AND logic"
+ }
+ },
+ "title": "A collection of Condition Groups"
+ },
+ "policyValue": {
"type": "object",
"properties": {
"id": {
@@ -359,7 +524,7 @@
"title": "generated uuid in database"
},
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
},
"value": {
"type": "string"
@@ -386,6 +551,14 @@
"type": "boolean",
"title": "active by default until explicitly deactivated"
},
+ "subjectMappings": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectMapping"
+ },
+ "title": "subject mapping"
+ },
"metadata": {
"$ref": "#/definitions/commonMetadata",
"title": "Common metadata"
@@ -420,13 +593,15 @@
"$ref": "#/definitions/commonMetadataMutable",
"title": "Optional"
}
- }
+ },
+ "description": "grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping \u003c\u003cEOM\n{\n\"mapping\": {\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}\nEOM\n\n### Response\n\n{\n\"mapping\": {\n\"metadata\": {\n\"id\": \"12345678-1234-1234-1234-123456789012\",\n\"created_at\": \"2020-01-01T00:00:00Z\",\n\"updated_at\": \"2020-01-01T00:00:00Z\"\n},\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}",
+ "title": "### Request"
},
"resourcemappingCreateResourceMappingResponse": {
"type": "object",
"properties": {
"resourceMapping": {
- "$ref": "#/definitions/resourcemappingResourceMapping"
+ "$ref": "#/definitions/policyResourceMapping"
}
}
},
@@ -434,7 +609,7 @@
"type": "object",
"properties": {
"resourceMapping": {
- "$ref": "#/definitions/resourcemappingResourceMapping"
+ "$ref": "#/definitions/policyResourceMapping"
}
}
},
@@ -442,7 +617,7 @@
"type": "object",
"properties": {
"resourceMapping": {
- "$ref": "#/definitions/resourcemappingResourceMapping"
+ "$ref": "#/definitions/policyResourceMapping"
}
}
},
@@ -453,38 +628,16 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/resourcemappingResourceMapping"
+ "$ref": "#/definitions/policyResourceMapping"
}
}
}
},
- "resourcemappingResourceMapping": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata"
- },
- "attributeValue": {
- "$ref": "#/definitions/policyattributesValue"
- },
- "terms": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "description": "## Examples\n\n### Where\n\nattributeId is an id of the following attribute\n\nFQN: http://demo.com/attr/Classification/value/Confidential\nUUID: 12345678-1234-1234-1234-123456789012\n\n### Request\n\ngrpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping \u003c\u003cEOM\n{\n\"mapping\": {\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}\nEOM\n\n### Response\n\n{\n\"mapping\": {\n\"metadata\": {\n\"id\": \"12345678-1234-1234-1234-123456789012\",\n\"created_at\": \"2020-01-01T00:00:00Z\",\n\"updated_at\": \"2020-01-01T00:00:00Z\"\n},\n\"name\": \"Classification\",\n\"attribute_value_id\": \"12345678-1234-1234-1234-123456789012\",\n\"terms\": [\"CONFIDENTIAL\", \"CONTROLLED UNCLASSIFIED\", \"OFFICIAL-SENSITIVE\", \"CUI\", \"C\"]\n}\n}",
- "title": "# Resource Mappings (aka Access Control Resource Encodings aka ACRE): Structures supporting Resources and Attributes mappings"
- },
"resourcemappingUpdateResourceMappingResponse": {
"type": "object",
"properties": {
"resourceMapping": {
- "$ref": "#/definitions/resourcemappingResourceMapping"
+ "$ref": "#/definitions/policyResourceMapping"
}
}
},
diff --git a/docs/openapi/policy/selectors.swagger.json b/docs/openapi/policy/selectors.swagger.json
new file mode 100644
index 0000000..5e1366e
--- /dev/null
+++ b/docs/openapi/policy/selectors.swagger.json
@@ -0,0 +1,46 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "policy/selectors.proto",
+ "version": "version not set"
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {},
+ "definitions": {
+ "protobufAny": {
+ "type": "object",
+ "properties": {
+ "@type": {
+ "type": "string",
+ "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
+ }
+ },
+ "additionalProperties": {},
+ "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
+ },
+ "rpcStatus": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/protobufAny"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/docs/openapi/policy/subjectmapping/subject_mapping.swagger.json b/docs/openapi/policy/subjectmapping/subject_mapping.swagger.json
index 615c544..81b8061 100644
--- a/docs/openapi/policy/subjectmapping/subject_mapping.swagger.json
+++ b/docs/openapi/policy/subjectmapping/subject_mapping.swagger.json
@@ -160,7 +160,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectSet"
+ "$ref": "#/definitions/policySubjectSet"
},
"title": "Optional\nIf provided, replaces entire existing structure of Subject Sets, Condition Groups, \u0026 Conditions"
},
@@ -259,7 +259,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectProperty"
+ "$ref": "#/definitions/policySubjectProperty"
}
}
}
@@ -365,7 +365,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/authorizationAction"
+ "$ref": "#/definitions/policyAction"
},
"title": "Replaces entire list of actions permitted by subjects"
},
@@ -397,74 +397,6 @@
"default": "STANDARD_ACTION_UNSPECIFIED",
"title": "Standard actions supported by the platform"
},
- "attributesAttribute": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "namespace": {
- "$ref": "#/definitions/namespacesNamespace",
- "title": "namespace of the attribute"
- },
- "name": {
- "type": "string",
- "title": "attribute name"
- },
- "rule": {
- "$ref": "#/definitions/attributesAttributeRuleTypeEnum",
- "title": "attribute rule enum"
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/policyattributesValue"
- }
- },
- "grants": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/kasregistryKeyAccessServer"
- }
- },
- "fqn": {
- "type": "string"
- },
- "active": {
- "type": "boolean",
- "title": "active by default until explicitly deactivated"
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata",
- "title": "Common metadata"
- }
- }
- },
- "attributesAttributeRuleTypeEnum": {
- "type": "string",
- "enum": [
- "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
- "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
- ],
- "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
- "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
- },
- "authorizationAction": {
- "type": "object",
- "properties": {
- "standard": {
- "$ref": "#/definitions/ActionStandardAction"
- },
- "custom": {
- "type": "string"
- }
- },
- "title": "An action an entity can take"
- },
"commonMetadata": {
"type": "object",
"properties": {
@@ -543,7 +475,124 @@
}
}
},
- "namespacesNamespace": {
+ "policyAction": {
+ "type": "object",
+ "properties": {
+ "standard": {
+ "$ref": "#/definitions/ActionStandardAction"
+ },
+ "custom": {
+ "type": "string"
+ }
+ },
+ "title": "An action an entity can take"
+ },
+ "policyAttribute": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "namespace": {
+ "$ref": "#/definitions/policyNamespace",
+ "title": "namespace of the attribute"
+ },
+ "name": {
+ "type": "string",
+ "title": "attribute name"
+ },
+ "rule": {
+ "$ref": "#/definitions/policyAttributeRuleTypeEnum",
+ "title": "attribute rule enum"
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyValue"
+ }
+ },
+ "grants": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/kasregistryKeyAccessServer"
+ }
+ },
+ "fqn": {
+ "type": "string"
+ },
+ "active": {
+ "type": "boolean",
+ "title": "active by default until explicitly deactivated"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata",
+ "title": "Common metadata"
+ }
+ }
+ },
+ "policyAttributeRuleTypeEnum": {
+ "type": "string",
+ "enum": [
+ "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF",
+ "ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY"
+ ],
+ "default": "ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyCondition": {
+ "type": "object",
+ "properties": {
+ "subjectExternalField": {
+ "type": "string",
+ "title": "externally known field name (such as from idP/LDAP)"
+ },
+ "operator": {
+ "$ref": "#/definitions/policySubjectMappingOperatorEnum",
+ "title": "the evaluation operator of relation"
+ },
+ "subjectExternalValues": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "list of comparison values for the subject_external_field, evaluated by the operator"
+ }
+ },
+ "description": "Example: Subjects with field \"division\" and a value of \"Accounting\" or \"Marketing\":\n{\n\"subject_external_field\": \"division\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_IN\",\n\"subject_external_values\" : [\"Accounting\", \"Marketing\"]\n}\n\nExample: Subjects that are not part of the Fantastic Four:\n{\n\"subject_external_field\": \"superhero_name\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN\",\n\"subject_external_values\" : [\"mister_fantastic\", \"the_thing\", \"human_torch\", \"invisible_woman\"]\n}",
+ "title": "*\nA Condition defines a rule of \u003csubject external field name\u003e \u003coperator\u003e \u003csubject external values\u003e"
+ },
+ "policyConditionBooleanTypeEnum": {
+ "type": "string",
+ "enum": [
+ "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "CONDITION_BOOLEAN_TYPE_ENUM_AND",
+ "CONDITION_BOOLEAN_TYPE_ENUM_OR"
+ ],
+ "default": "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policyConditionGroup": {
+ "type": "object",
+ "properties": {
+ "conditions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyCondition"
+ }
+ },
+ "booleanOperator": {
+ "$ref": "#/definitions/policyConditionBooleanTypeEnum",
+ "title": "the boolean evaluation type across the conditions"
+ }
+ },
+ "title": "A collection of Conditions evaluated by the boolean_operator provided"
+ },
+ "policyNamespace": {
"type": "object",
"properties": {
"id": {
@@ -566,7 +615,91 @@
}
}
},
- "policyattributesValue": {
+ "policySubjectConditionSet": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "subjectSets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectSet"
+ }
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet\nare evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple\nSubject Mappings / Attribute Values and is an independent unit."
+ },
+ "policySubjectMapping": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "attributeValue": {
+ "$ref": "#/definitions/policyValue",
+ "title": "the Attribute Value mapped to; aka: \"The Entity Entitlement Attribute\""
+ },
+ "subjectConditionSet": {
+ "$ref": "#/definitions/policySubjectConditionSet",
+ "title": "the reusable SubjectConditionSet mapped to the given Attribute Value"
+ },
+ "actions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyAction"
+ },
+ "title": "The actions permitted by subjects in this mapping"
+ },
+ "metadata": {
+ "$ref": "#/definitions/commonMetadata"
+ }
+ },
+ "description": "Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one\nwith permitted actions TRANSMIT and DECRYPT\n{\n\"id\": \"someid\",\n\"attribute_value\": {example_one_attribute_value...},\n\"subject_condition_set\": {\"subject_sets\":[{subject_set_1},{subject_set_2}]...},\n\"actions\": [{\"standard\": \"STANDARD_ACTION_DECRYPT\"}\", {\"standard\": \"STANDARD_ACTION_TRANSMIT\"}]\n}",
+ "title": "Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination"
+ },
+ "policySubjectMappingOperatorEnum": {
+ "type": "string",
+ "enum": [
+ "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
+ "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN"
+ ],
+ "default": "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
+ "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
+ },
+ "policySubjectProperty": {
+ "type": "object",
+ "properties": {
+ "externalField": {
+ "type": "string"
+ },
+ "externalValue": {
+ "type": "string"
+ }
+ },
+ "description": "A property of a Subject/Entity as a field-\u003evalue pair. This would mirror external user attributes retrieved\nfrom an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.\nFor now, a valid property must contain both field \u0026 value."
+ },
+ "policySubjectSet": {
+ "type": "object",
+ "properties": {
+ "conditionGroups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policyConditionGroup"
+ },
+ "title": "multiple Condition Groups are evaluated with AND logic"
+ }
+ },
+ "title": "A collection of Condition Groups"
+ },
+ "policyValue": {
"type": "object",
"properties": {
"id": {
@@ -574,7 +707,7 @@
"title": "generated uuid in database"
},
"attribute": {
- "$ref": "#/definitions/attributesAttribute"
+ "$ref": "#/definitions/policyAttribute"
},
"value": {
"type": "string"
@@ -601,6 +734,14 @@
"type": "boolean",
"title": "active by default until explicitly deactivated"
},
+ "subjectMappings": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/policySubjectMapping"
+ },
+ "title": "subject mapping"
+ },
"metadata": {
"$ref": "#/definitions/commonMetadata",
"title": "Common metadata"
@@ -637,55 +778,6 @@
}
}
},
- "subjectmappingCondition": {
- "type": "object",
- "properties": {
- "subjectExternalField": {
- "type": "string",
- "title": "externally known field name (such as from idP/LDAP)"
- },
- "operator": {
- "$ref": "#/definitions/subjectmappingSubjectMappingOperatorEnum",
- "title": "the evaluation operator of relation"
- },
- "subjectExternalValues": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "title": "list of comparison values for the subject_external_field, evaluated by the operator"
- }
- },
- "description": "Example: Subjects with field \"division\" and a value of \"Accounting\" or \"Marketing\":\n{\n\"subject_external_field\": \"division\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_IN\",\n\"subject_external_values\" : [\"Accounting\", \"Marketing\"]\n}\n\nExample: Subjects that are not part of the Fantastic Four:\n{\n\"subject_external_field\": \"superhero_name\",\n\"operator\": \"SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN\",\n\"subject_external_values\" : [\"mister_fantastic\", \"the_thing\", \"human_torch\", \"invisible_woman\"]\n}",
- "title": "*\nA Condition defines a rule of \u003csubject external field name\u003e \u003coperator\u003e \u003csubject external values\u003e"
- },
- "subjectmappingConditionBooleanTypeEnum": {
- "type": "string",
- "enum": [
- "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
- "CONDITION_BOOLEAN_TYPE_ENUM_AND",
- "CONDITION_BOOLEAN_TYPE_ENUM_OR"
- ],
- "default": "CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED",
- "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
- },
- "subjectmappingConditionGroup": {
- "type": "object",
- "properties": {
- "conditions": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/subjectmappingCondition"
- }
- },
- "booleanOperator": {
- "$ref": "#/definitions/subjectmappingConditionBooleanTypeEnum",
- "title": "the boolean evaluation type across the conditions"
- }
- },
- "title": "A collection of Conditions evaluated by the boolean_operator provided"
- },
"subjectmappingCreateSubjectConditionSetRequest": {
"type": "object",
"properties": {
@@ -698,7 +790,7 @@
"type": "object",
"properties": {
"subjectConditionSet": {
- "$ref": "#/definitions/subjectmappingSubjectConditionSet"
+ "$ref": "#/definitions/policySubjectConditionSet"
}
}
},
@@ -713,7 +805,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/authorizationAction"
+ "$ref": "#/definitions/policyAction"
},
"title": "The actions permitted by subjects in this mapping"
},
@@ -735,7 +827,7 @@
"type": "object",
"properties": {
"subjectMapping": {
- "$ref": "#/definitions/subjectmappingSubjectMapping"
+ "$ref": "#/definitions/policySubjectMapping"
}
}
},
@@ -743,7 +835,7 @@
"type": "object",
"properties": {
"subjectConditionSet": {
- "$ref": "#/definitions/subjectmappingSubjectConditionSet",
+ "$ref": "#/definitions/policySubjectConditionSet",
"title": "Only ID of deleted Subject Condition Set provided"
}
}
@@ -752,7 +844,7 @@
"type": "object",
"properties": {
"subjectMapping": {
- "$ref": "#/definitions/subjectmappingSubjectMapping",
+ "$ref": "#/definitions/policySubjectMapping",
"title": "Only ID of the updated Subject Mapping provided"
}
}
@@ -761,13 +853,13 @@
"type": "object",
"properties": {
"subjectConditionSet": {
- "$ref": "#/definitions/subjectmappingSubjectConditionSet"
+ "$ref": "#/definitions/policySubjectConditionSet"
},
"associatedSubjectMappings": {
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectMapping"
+ "$ref": "#/definitions/policySubjectMapping"
},
"title": "contextualized Subject Mappings associated with this SubjectConditionSet"
}
@@ -777,7 +869,7 @@
"type": "object",
"properties": {
"subjectMapping": {
- "$ref": "#/definitions/subjectmappingSubjectMapping"
+ "$ref": "#/definitions/policySubjectMapping"
}
}
},
@@ -788,7 +880,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectConditionSet"
+ "$ref": "#/definitions/policySubjectConditionSet"
}
}
}
@@ -800,7 +892,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectMapping"
+ "$ref": "#/definitions/policySubjectMapping"
}
}
}
@@ -812,30 +904,11 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectMapping"
+ "$ref": "#/definitions/policySubjectMapping"
}
}
}
},
- "subjectmappingSubjectConditionSet": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "subjectSets": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/subjectmappingSubjectSet"
- }
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata"
- }
- },
- "description": "A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet\nare evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple\nSubject Mappings / Attribute Values and is an independent unit."
- },
"subjectmappingSubjectConditionSetCreate": {
"type": "object",
"properties": {
@@ -843,7 +916,7 @@
"type": "array",
"items": {
"type": "object",
- "$ref": "#/definitions/subjectmappingSubjectSet"
+ "$ref": "#/definitions/policySubjectSet"
},
"title": "Required"
},
@@ -853,76 +926,11 @@
}
}
},
- "subjectmappingSubjectMapping": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "attributeValue": {
- "$ref": "#/definitions/policyattributesValue",
- "title": "the Attribute Value mapped to; aka: \"The Entity Entitlement Attribute\""
- },
- "subjectConditionSet": {
- "$ref": "#/definitions/subjectmappingSubjectConditionSet",
- "title": "the reusable SubjectConditionSet mapped to the given Attribute Value"
- },
- "actions": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/authorizationAction"
- },
- "title": "The actions permitted by subjects in this mapping"
- },
- "metadata": {
- "$ref": "#/definitions/commonMetadata"
- }
- },
- "description": "Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one\nwith permitted actions TRANSMIT and DECRYPT\n{\n\"id\": \"someid\",\n\"attribute_value\": {example_one_attribute_value...},\n\"subject_condition_set\": {\"subject_sets\":[{subject_set_1},{subject_set_2}]...},\n\"actions\": [{\"standard\": \"STANDARD_ACTION_DECRYPT\"}\", {\"standard\": \"STANDARD_ACTION_TRANSMIT\"}]\n}",
- "title": "Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination"
- },
- "subjectmappingSubjectMappingOperatorEnum": {
- "type": "string",
- "enum": [
- "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
- "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
- "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN"
- ],
- "default": "SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED",
- "title": "buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package"
- },
- "subjectmappingSubjectProperty": {
- "type": "object",
- "properties": {
- "externalField": {
- "type": "string"
- },
- "externalValue": {
- "type": "string"
- }
- },
- "description": "A property of a Subject/Entity as a field-\u003evalue pair. This would mirror external user attributes retrieved\nfrom an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.\nFor now, a valid property must contain both field \u0026 value."
- },
- "subjectmappingSubjectSet": {
- "type": "object",
- "properties": {
- "conditionGroups": {
- "type": "array",
- "items": {
- "type": "object",
- "$ref": "#/definitions/subjectmappingConditionGroup"
- },
- "title": "multiple Condition Groups are evaluated with AND logic"
- }
- },
- "title": "A collection of Condition Groups"
- },
"subjectmappingUpdateSubjectConditionSetResponse": {
"type": "object",
"properties": {
"subjectConditionSet": {
- "$ref": "#/definitions/subjectmappingSubjectConditionSet",
+ "$ref": "#/definitions/policySubjectConditionSet",
"title": "Only ID of updated Subject Condition Set provided"
}
}
@@ -931,7 +939,7 @@
"type": "object",
"properties": {
"subjectMapping": {
- "$ref": "#/definitions/subjectmappingSubjectMapping",
+ "$ref": "#/definitions/policySubjectMapping",
"title": "Only ID of the updated Subject Mapping provided"
}
}
diff --git a/docs/openapi/policy/types.swagger.json b/docs/openapi/policy/types.swagger.json
new file mode 100644
index 0000000..31797d4
--- /dev/null
+++ b/docs/openapi/policy/types.swagger.json
@@ -0,0 +1,42 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "policy/objects.proto",
+ "version": "version not set"
+ },
+ "consumes": ["application/json"],
+ "produces": ["application/json"],
+ "paths": {},
+ "definitions": {
+ "protobufAny": {
+ "type": "object",
+ "properties": {
+ "@type": {
+ "type": "string",
+ "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
+ }
+ },
+ "additionalProperties": {},
+ "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
+ },
+ "rpcStatus": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "message": {
+ "type": "string"
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/protobufAny"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/examples/cmd/attributes.go b/examples/cmd/attributes.go
index 81237ce..c29b6e7 100644
--- a/examples/cmd/attributes.go
+++ b/examples/cmd/attributes.go
@@ -5,6 +5,7 @@ import (
"fmt"
"log/slog"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
"github.com/opentdf/platform/sdk"
@@ -26,6 +27,7 @@ var AttributesExampleCmd = &cobra.Command{
func init() {
ExamplesCmd.AddCommand(AttributesExampleCmd)
}
+
func attributesExample(examplesConfig *ExampleConfig) error {
s, err := sdk.New(examplesConfig.PlatformEndpoint, sdk.WithInsecureConn())
if err != nil {
@@ -34,7 +36,7 @@ func attributesExample(examplesConfig *ExampleConfig) error {
}
defer s.Close()
- var exampleNamespace *namespaces.Namespace
+ var exampleNamespace *policy.Namespace
slog.Info("listing namespaces")
listResp, err := s.Namespaces.ListNamespaces(context.Background(), &namespaces.ListNamespacesRequest{})
if err != nil {
@@ -63,7 +65,7 @@ func attributesExample(examplesConfig *ExampleConfig) error {
_, err = s.Attributes.CreateAttribute(context.Background(), &attributes.CreateAttributeRequest{
Name: "IntellectualProperty",
NamespaceId: exampleNamespace.Id,
- Rule: *attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY.Enum(),
+ Rule: *policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY.Enum(),
// Values: []*attributes.ValueCreateUpdate{
// {Value: "TradeSecret"},
// {Value: "Proprietary"},
diff --git a/examples/cmd/authorization.go b/examples/cmd/authorization.go
index 953d170..972f2b8 100644
--- a/examples/cmd/authorization.go
+++ b/examples/cmd/authorization.go
@@ -6,6 +6,7 @@ import (
"log/slog"
"github.com/opentdf/platform/protocol/go/authorization"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/sdk"
"github.com/spf13/cobra"
"google.golang.org/protobuf/encoding/protojson"
@@ -29,8 +30,8 @@ func authorizationExamples(examplesConfig *ExampleConfig) error {
defer s.Close()
// request decision on "TRANSMIT" Action
- actions := []*authorization.Action{{
- Value: &authorization.Action_Standard{Standard: authorization.Action_STANDARD_ACTION_TRANSMIT},
+ actions := []*policy.Action{{
+ Value: &policy.Action_Standard{Standard: policy.Action_STANDARD_ACTION_TRANSMIT},
}}
// model two groups of entities; user bob and user alice
diff --git a/integration/attribute_fqns_test.go b/integration/attribute_fqns_test.go
index adfb265..e8c7020 100644
--- a/integration/attribute_fqns_test.go
+++ b/integration/attribute_fqns_test.go
@@ -8,6 +8,7 @@ import (
"github.com/opentdf/platform/internal/db"
"github.com/opentdf/platform/internal/fixtures"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
@@ -78,7 +79,7 @@ func (s *AttributeFqnSuite) TestCreateAttribute() {
a, err := s.db.PolicyClient.CreateAttribute(s.ctx, &attributes.CreateAttributeRequest{
NamespaceId: n.Id,
Name: name,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
})
s.NoError(err)
// Verify FQN
@@ -92,7 +93,7 @@ func (s *AttributeFqnSuite) TestCreateAttribute() {
func (s *AttributeFqnSuite) TestCreateAttributeValue() {
a := s.f.GetAttributeKey("example.com/attr/attr1")
n := s.f.GetNamespaceKey("example.com")
- name := "test_namespace"
+ name := "test_new_value"
v, err := s.db.PolicyClient.CreateAttributeValue(s.ctx, a.Id, &attributes.CreateAttributeValueRequest{
Value: name,
})
@@ -112,15 +113,22 @@ func (s *AttributeFqnSuite) TestGetAttributeByFqn_WithAttrValueFqn() {
attr, err := s.db.PolicyClient.GetAttributeByFqn(s.ctx, fullFqn)
s.NoError(err)
-
- // there should be only one value
- s.Equal(1, len(attr.Values))
-
- // the value should match the fixture
- av := attr.Values[0]
- s.Equal(attr.Id, valueFixture.AttributeDefinitionId)
- s.Equal(av.Id, valueFixture.Id)
- s.Equal(av.Value, valueFixture.Value)
+ s.NotNil(attr)
+ s.Equal(valueFixture.AttributeDefinitionId, attr.Id)
+
+ // there should be more than one value on the attribute
+ s.Greater(len(attr.Values), 1)
+
+ // the value should match the fixture (verify by looping through and matching the fqn)
+ for _, v := range attr.Values {
+ if v.Id == valueFixture.Id {
+ s.Equal(fullFqn, v.Fqn)
+ s.Equal(valueFixture.Id, v.Id)
+ s.Equal(valueFixture.Value, v.Value)
+ // the value should contain subject mappings
+ s.GreaterOrEqual(len(v.SubjectMappings), 3)
+ }
+ }
}
// Test Get one attribute by the FQN of the attribute definition
@@ -161,7 +169,7 @@ func (s *AttributeFqnSuite) TestGetAttributesByValueFqns() {
a, err := s.db.PolicyClient.CreateAttribute(s.ctx, &attributes.CreateAttributeRequest{
NamespaceId: n.Id,
Name: attr,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
})
assert.NoError(s.T(), err)
@@ -173,7 +181,12 @@ func (s *AttributeFqnSuite) TestGetAttributesByValueFqns() {
// Get attributes by fqns with a solo value
fqns := []string{fqn1}
- attributeAndValue, err := s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, fqns)
+ attributeAndValue, err := s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, &attributes.GetAttributeValuesByFqnsRequest{
+ Fqns: fqns,
+ WithValue: &policy.AttributeValueSelector{
+ WithSubjectMaps: true,
+ },
+ })
assert.NoError(s.T(), err)
// Verify attribute1 is sole attribute
@@ -196,7 +209,12 @@ func (s *AttributeFqnSuite) TestGetAttributesByValueFqns() {
// Get attributes by fqns with two values
fqns = []string{fqn1, fqn2}
- attributeAndValue, err = s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, fqns)
+ attributeAndValue, err = s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, &attributes.GetAttributeValuesByFqnsRequest{
+ Fqns: fqns,
+ WithValue: &policy.AttributeValueSelector{
+ WithSubjectMaps: true,
+ },
+ })
assert.NoError(s.T(), err)
assert.Len(s.T(), attributeAndValue, 2)
@@ -220,12 +238,22 @@ func (s *AttributeFqnSuite) TestGetAttributesByValueFqns() {
func (s *AttributeFqnSuite) TestGetAttributesByValueFqns_Fails_WithNonValueFqns() {
nsFqn := fqnBuilder("example.com", "", "")
attrFqn := fqnBuilder("example.com", "attr1", "")
- v, err := s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, []string{nsFqn})
+ v, err := s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, &attributes.GetAttributeValuesByFqnsRequest{
+ Fqns: []string{nsFqn},
+ WithValue: &policy.AttributeValueSelector{
+ WithSubjectMaps: true,
+ },
+ })
assert.Error(s.T(), err)
assert.Nil(s.T(), v)
assert.ErrorIs(s.T(), err, db.ErrFqnMissingValue)
- v, err = s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, []string{attrFqn})
+ v, err = s.db.PolicyClient.GetAttributesByValueFqns(s.ctx, &attributes.GetAttributeValuesByFqnsRequest{
+ Fqns: []string{attrFqn},
+ WithValue: &policy.AttributeValueSelector{
+ WithSubjectMaps: true,
+ },
+ })
assert.Error(s.T(), err)
assert.Nil(s.T(), v)
assert.ErrorIs(s.T(), err, db.ErrFqnMissingValue)
diff --git a/integration/attribute_values_test.go b/integration/attribute_values_test.go
index c6eef71..c64019d 100644
--- a/integration/attribute_values_test.go
+++ b/integration/attribute_values_test.go
@@ -8,6 +8,7 @@ import (
"github.com/opentdf/platform/internal/db"
"github.com/opentdf/platform/internal/fixtures"
"github.com/opentdf/platform/protocol/go/common"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
policydb "github.com/opentdf/platform/services/policy/db"
@@ -299,7 +300,7 @@ func setupDeactivateAttributeValue(s *AttributeValuesSuite) (string, string, str
attr := &attributes.CreateAttributeRequest{
Name: "test__cascading-deactivate-attr-value",
NamespaceId: n.Id,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
diff --git a/integration/attributes_test.go b/integration/attributes_test.go
index f472030..e4a06fc 100644
--- a/integration/attributes_test.go
+++ b/integration/attributes_test.go
@@ -9,6 +9,7 @@ import (
"github.com/opentdf/platform/internal/db"
"github.com/opentdf/platform/internal/fixtures"
"github.com/opentdf/platform/protocol/go/common"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
policydb "github.com/opentdf/platform/services/policy/db"
@@ -64,7 +65,7 @@ func (s *AttributesSuite) Test_CreateAttribute_NoMetadataSucceeds() {
attr := &attributes.CreateAttributeRequest{
Name: "test__create_attribute_no_metadata",
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -75,7 +76,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithMetadataSucceeds() {
attr := &attributes.CreateAttributeRequest{
Name: "test__create_attribute_with_metadata",
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
Metadata: &common.MetadataMutable{
Labels: map[string]string{
"origin": "Some info about origin",
@@ -91,7 +92,7 @@ func (s *AttributesSuite) Test_CreateAttribute_SetsActiveStateTrueByDefault() {
attr := &attributes.CreateAttributeRequest{
Name: "test__create_attribute_active_state_default",
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -103,7 +104,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithInvalidNamespaceFails() {
attr := &attributes.CreateAttributeRequest{
Name: "test__create_attribute_invalid_namespace",
NamespaceId: nonExistentNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.NotNil(s.T(), err)
@@ -115,7 +116,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithNonUniqueNameConflictFails()
attr := &attributes.CreateAttributeRequest{
Name: s.f.GetAttributeKey("example.com/attr/attr1").Name,
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.NotNil(s.T(), err)
@@ -128,7 +129,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithEveryRuleSucceeds() {
attr := &attributes.CreateAttributeRequest{
Name: "test__create_attribute_with_any_of_rule_value",
NamespaceId: otherNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -137,7 +138,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithEveryRuleSucceeds() {
attr = &attributes.CreateAttributeRequest{
Name: "test__create_attribute_with_all_of_rule_value",
NamespaceId: otherNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err = s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -146,7 +147,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithEveryRuleSucceeds() {
attr = &attributes.CreateAttributeRequest{
Name: "test__create_attribute_with_unspecified_rule_value",
NamespaceId: otherNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
}
createdAttr, err = s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -155,7 +156,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithEveryRuleSucceeds() {
attr = &attributes.CreateAttributeRequest{
Name: "test__create_attribute_with_hierarchy_rule_value",
NamespaceId: otherNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY,
}
createdAttr, err = s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -167,7 +168,7 @@ func (s *AttributesSuite) Test_CreateAttribute_WithInvalidRuleFails() {
Name: "test__create_attribute_with_invalid_rule",
NamespaceId: fixtureNamespaceId,
// fake an enum value index far beyond reason
- Rule: attributes.AttributeRuleTypeEnum(100),
+ Rule: policy.AttributeRuleTypeEnum(100),
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.NotNil(s.T(), err)
@@ -250,7 +251,7 @@ func (s *AttributesSuite) Test_UpdateAttribute() {
attr := &attributes.CreateAttributeRequest{
Name: "test__update_attribute",
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
Metadata: &common.MetadataMutable{
Labels: labels,
},
@@ -304,7 +305,7 @@ func (s *AttributesSuite) Test_UpdateAttribute_NamespaceIsImmutableOnUpdate() {
original := &attributes.CreateAttributeRequest{
Name: "test__update_attribute_namespace_immutable",
NamespaceId: s.f.GetNamespaceKey("example.com").Id,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, original)
assert.Nil(s.T(), err)
@@ -330,7 +331,7 @@ func (s *AttributesSuite) Test_UpdateAttributeWithSameNameAndNamespaceConflictFa
original := &attributes.CreateAttributeRequest{
Name: "test__update_attribute_with_same_name_and_namespace",
NamespaceId: fixtureData.NamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, original)
assert.Nil(s.T(), err)
@@ -347,7 +348,7 @@ func (s *AttributesSuite) Test_DeleteAttribute() {
attr := &attributes.CreateAttributeRequest{
Name: "test__delete_attribute",
NamespaceId: fixtureNamespaceId,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
@@ -390,7 +391,7 @@ func setupCascadeDeactivateAttribute(s *AttributesSuite) (string, string, string
attr := &attributes.CreateAttributeRequest{
Name: "test__cascading-deactivate-attr",
NamespaceId: n.Id,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
diff --git a/integration/namespaces_test.go b/integration/namespaces_test.go
index 784c544..26db00b 100644
--- a/integration/namespaces_test.go
+++ b/integration/namespaces_test.go
@@ -10,6 +10,7 @@ import (
"github.com/opentdf/platform/internal/db"
"github.com/opentdf/platform/internal/fixtures"
"github.com/opentdf/platform/protocol/go/common"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
policydb "github.com/opentdf/platform/services/policy/db"
@@ -253,7 +254,7 @@ func setupCascadeDeactivateNamespace(s *NamespacesSuite) (string, string, string
attr := &attributes.CreateAttributeRequest{
Name: "test__cascading-deactivate-attribute",
NamespaceId: n.Id,
- Rule: attributes.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
+ Rule: policy.AttributeRuleTypeEnum_ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF,
}
createdAttr, err := s.db.PolicyClient.CreateAttribute(s.ctx, attr)
assert.Nil(s.T(), err)
diff --git a/integration/subject_mappings_test.go b/integration/subject_mappings_test.go
index 9990986..f9d0433 100644
--- a/integration/subject_mappings_test.go
+++ b/integration/subject_mappings_test.go
@@ -7,8 +7,8 @@ import (
"github.com/opentdf/platform/internal/db"
"github.com/opentdf/platform/internal/fixtures"
- "github.com/opentdf/platform/protocol/go/authorization"
"github.com/opentdf/platform/protocol/go/common"
+ "github.com/opentdf/platform/protocol/go/policy"
"github.com/opentdf/platform/protocol/go/policy/subjectmapping"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
@@ -43,24 +43,24 @@ var (
CUSTOM_DOWNLOAD = "CUSTOM_DOWNLOAD"
CUSTOM_UPLOAD = "CUSTOM_UPLOAD"
- fixtureActions = map[string]*authorization.Action{
+ fixtureActions = map[string]*policy.Action{
"DECRYPT": {
- Value: &authorization.Action_Standard{
- Standard: authorization.Action_STANDARD_ACTION_DECRYPT,
+ Value: &policy.Action_Standard{
+ Standard: policy.Action_STANDARD_ACTION_DECRYPT,
},
},
"TRANSMIT": {
- Value: &authorization.Action_Standard{
- Standard: authorization.Action_STANDARD_ACTION_TRANSMIT,
+ Value: &policy.Action_Standard{
+ Standard: policy.Action_STANDARD_ACTION_TRANSMIT,
},
},
"CUSTOM_DOWNLOAD": {
- Value: &authorization.Action_Custom{
+ Value: &policy.Action_Custom{
Custom: "DOWNLOAD",
},
},
"CUSTOM_UPLOAD": {
- Value: &authorization.Action_Custom{
+ Value: &policy.Action_Custom{
Custom: "UPLOAD",
},
},
@@ -83,7 +83,7 @@ func (s *SubjectMappingsSuite) TestCreateSubjectMapping_ExistingSubjectCondition
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
ExistingSubjectConditionSetId: fixtureSCSId,
- Actions: []*authorization.Action{aDecrypt, aTransmit},
+ Actions: []*policy.Action{aDecrypt, aTransmit},
}
created, err := s.db.PolicyClient.CreateSubjectMapping(s.ctx, new)
@@ -104,15 +104,15 @@ func (s *SubjectMappingsSuite) TestCreateSubjectMapping_NewSubjectConditionSet()
aTransmit := fixtureActions[TRANSMIT]
scs := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{
- ConditionGroups: []*subjectmapping.ConditionGroup{
+ ConditionGroups: []*policy.ConditionGroup{
{
- BooleanOperator: subjectmapping.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_AND,
- Conditions: []*subjectmapping.Condition{
+ BooleanOperator: policy.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_AND,
+ Conditions: []*policy.Condition{
{
SubjectExternalField: "email",
- Operator: subjectmapping.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_IN,
+ Operator: policy.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_IN,
SubjectExternalValues: []string{"hello@email.com"},
},
},
@@ -124,7 +124,7 @@ func (s *SubjectMappingsSuite) TestCreateSubjectMapping_NewSubjectConditionSet()
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
NewSubjectConditionSet: scs,
}
@@ -168,7 +168,7 @@ func (s *SubjectMappingsSuite) TestCreateSubjectMapping_NonExistentAttributeValu
fixtureScs := s.f.GetSubjectConditionSetKey("subject_condition_set2")
aTransmit := fixtureActions[TRANSMIT]
new := &subjectmapping.CreateSubjectMappingRequest{
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
ExistingSubjectConditionSetId: fixtureScs.Id,
AttributeValueId: nonExistentAttributeValueUuid,
}
@@ -184,7 +184,7 @@ func (s *SubjectMappingsSuite) TestCreateSubjectMapping_NonExistentSubjectCondit
aTransmit := fixtureActions[TRANSMIT]
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrVal.Id,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
ExistingSubjectConditionSetId: nonExistentSubjectSetId,
}
@@ -203,7 +203,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectMapping_Actions() {
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit, aCustomUpload},
+ Actions: []*policy.Action{aTransmit, aCustomUpload},
ExistingSubjectConditionSetId: fixtureScs.Id,
}
@@ -212,7 +212,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectMapping_Actions() {
assert.NotNil(s.T(), created)
// update the subject mapping
- newActions := []*authorization.Action{aTransmit}
+ newActions := []*policy.Action{aTransmit}
update := &subjectmapping.UpdateSubjectMappingRequest{
Id: created.Id,
Actions: newActions,
@@ -241,7 +241,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectMapping_SubjectConditionSetId()
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
ExistingSubjectConditionSetId: fixtureScs.Id,
}
@@ -279,7 +279,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectMapping_UpdateAllAllowedFields()
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
ExistingSubjectConditionSetId: fixtureScs.Id,
}
@@ -289,7 +289,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectMapping_UpdateAllAllowedFields()
// update the subject mapping
newScs := s.f.GetSubjectConditionSetKey("subject_condition_set2")
- newActions := []*authorization.Action{fixtureActions[CUSTOM_DOWNLOAD]}
+ newActions := []*policy.Action{fixtureActions[CUSTOM_DOWNLOAD]}
metadata := &common.MetadataMutable{
Labels: map[string]string{"key": "value"},
}
@@ -389,7 +389,7 @@ func (s *SubjectMappingsSuite) TestListSubjectMappings() {
found3 := false
assert.GreaterOrEqual(s.T(), len(list), 3)
- assertEqual := func(sm *subjectmapping.SubjectMapping, fixture fixtures.FixtureDataSubjectMapping) {
+ assertEqual := func(sm *policy.SubjectMapping, fixture fixtures.FixtureDataSubjectMapping) {
assert.Equal(s.T(), fixture.AttributeValueId, sm.AttributeValue.Id)
assert.True(s.T(), sm.AttributeValue.Active.Value)
assert.Equal(s.T(), fixture.SubjectConditionSetId, sm.SubjectConditionSet.Id)
@@ -422,7 +422,7 @@ func (s *SubjectMappingsSuite) TestDeleteSubjectMapping() {
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
ExistingSubjectConditionSetId: fixtureScs.Id,
}
@@ -451,15 +451,15 @@ func (s *SubjectMappingsSuite) TestDeleteSubjectMapping_DoesNotDeleteSubjectCond
// create a new subject mapping, delete it, and verify the subject condition set still exists
fixtureAttrValId := s.f.GetAttributeValueKey("example.com/attr/attr2/value/value2").Id
newScs := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{
- ConditionGroups: []*subjectmapping.ConditionGroup{
+ ConditionGroups: []*policy.ConditionGroup{
{
- BooleanOperator: subjectmapping.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_AND,
- Conditions: []*subjectmapping.Condition{
+ BooleanOperator: policy.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_AND,
+ Conditions: []*policy.Condition{
{
SubjectExternalField: "idp_field",
- Operator: subjectmapping.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_IN,
+ Operator: policy.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_IN,
SubjectExternalValues: []string{"idp_value"},
},
},
@@ -472,7 +472,7 @@ func (s *SubjectMappingsSuite) TestDeleteSubjectMapping_DoesNotDeleteSubjectCond
new := &subjectmapping.CreateSubjectMappingRequest{
AttributeValueId: fixtureAttrValId,
- Actions: []*authorization.Action{aTransmit},
+ Actions: []*policy.Action{aTransmit},
NewSubjectConditionSet: newScs,
}
@@ -500,15 +500,15 @@ func (s *SubjectMappingsSuite) TestDeleteSubjectMapping_DoesNotDeleteSubjectCond
func (s *SubjectMappingsSuite) TestCreateSubjectConditionSet() {
new := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{
- ConditionGroups: []*subjectmapping.ConditionGroup{
+ ConditionGroups: []*policy.ConditionGroup{
{
- BooleanOperator: subjectmapping.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
- Conditions: []*subjectmapping.Condition{
+ BooleanOperator: policy.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
+ Conditions: []*policy.Condition{
{
SubjectExternalField: "some_field",
- Operator: subjectmapping.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
+ Operator: policy.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
SubjectExternalValues: []string{"some_value"},
},
},
@@ -581,7 +581,7 @@ func (s *SubjectMappingsSuite) TestListSubjectConditionSet() {
func (s *SubjectMappingsSuite) TestDeleteSubjectConditionSet() {
// create a new subject condition set, delete it, and verify get fails with not found
new := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{},
+ SubjectSets: []*policy.SubjectSet{},
}
created, err := s.db.PolicyClient.CreateSubjectConditionSet(s.ctx, new)
@@ -609,7 +609,7 @@ func (s *SubjectMappingsSuite) TestDeleteSubjectConditionSet_WithNonExistentId_F
func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_NewSubjectSets() {
// create a new one, update nothing but the subject sets, and verify the solo update
new := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{},
},
}
@@ -619,15 +619,15 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_NewSubjectSets() {
assert.NotNil(s.T(), created)
// update the subject condition set
- ss := []*subjectmapping.SubjectSet{
+ ss := []*policy.SubjectSet{
{
- ConditionGroups: []*subjectmapping.ConditionGroup{
+ ConditionGroups: []*policy.ConditionGroup{
{
- BooleanOperator: subjectmapping.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
- Conditions: []*subjectmapping.Condition{
+ BooleanOperator: policy.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
+ Conditions: []*policy.Condition{
{
SubjectExternalField: "origin",
- Operator: subjectmapping.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
+ Operator: policy.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
SubjectExternalValues: []string{"USA", "Canada"},
},
},
@@ -659,7 +659,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_NewSubjectSets() {
func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_AllAllowedFields() {
// create a new one, update it, and verify the update
new := &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{},
},
}
@@ -669,15 +669,15 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_AllAllowedFields()
assert.NotNil(s.T(), created)
// update the subject condition set
- ss := []*subjectmapping.SubjectSet{
+ ss := []*policy.SubjectSet{
{
- ConditionGroups: []*subjectmapping.ConditionGroup{
+ ConditionGroups: []*policy.ConditionGroup{
{
- BooleanOperator: subjectmapping.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
- Conditions: []*subjectmapping.Condition{
+ BooleanOperator: policy.ConditionBooleanTypeEnum_CONDITION_BOOLEAN_TYPE_ENUM_OR,
+ Conditions: []*policy.Condition{
{
SubjectExternalField: "somewhere",
- Operator: subjectmapping.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
+ Operator: policy.SubjectMappingOperatorEnum_SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN,
SubjectExternalValues: []string{"neither here", "nor there"},
},
},
@@ -713,7 +713,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_AllAllowedFields()
func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_NonExistentId_Fails() {
update := &subjectmapping.UpdateSubjectConditionSetRequest{
Id: nonExistentSubjectSetId,
- SubjectSets: []*subjectmapping.SubjectSet{},
+ SubjectSets: []*policy.SubjectSet{},
}
updated, err := s.db.PolicyClient.UpdateSubjectConditionSet(s.ctx, update)
@@ -727,7 +727,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_InOne() {
externalField := fixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalField
externalValues := fixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalValues
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: externalField,
ExternalValue: externalValues[0],
@@ -745,7 +745,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_DoesNotReturnNotInW
externalField := fixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalField
externalValues := fixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalValues
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: externalField,
ExternalValue: externalValues[0],
@@ -764,7 +764,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_NotInOneMatch() {
expectedMappedFixture := s.f.GetSubjectMappingKey("subject_mapping_subject_simple_not_in")
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: externalField,
ExternalValue: "random_value",
@@ -780,7 +780,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_NotInOneMatch() {
}
func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_MissingFieldInProperty_Fails() {
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalValue: "some_value",
},
@@ -792,7 +792,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_MissingFieldInPrope
}
func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_MissingValueInProperty_Fails() {
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: "some_field",
},
@@ -804,7 +804,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_MissingValueInPrope
}
func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_NoPropertiesProvided_Fails() {
- props := []*subjectmapping.SubjectProperty{}
+ props := []*policy.SubjectProperty{}
sm, err := s.db.PolicyClient.GetMatchedSubjectMappings(s.ctx, props)
assert.ErrorIs(s.T(), err, db.ErrMissingValue)
@@ -820,7 +820,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_InMultiple() {
otherExternalField := otherScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalField
otherExternalValues := otherScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalValues
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: simpleExternalField,
ExternalValue: simpleExternalValues[0],
@@ -861,7 +861,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_NotInMultiple() {
otherExternalField1 := otherFixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[1].SubjectExternalField
otherExpectedMatchedFixture := s.f.GetSubjectMappingKey("subject_mapping_subject_attribute3")
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: externalField,
ExternalValue: "random_value_definitely_not_in_fixtures",
@@ -895,7 +895,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_InOneAndNotInASecon
otherExternalField := otherFixtureScs.Condition.SubjectSets[0].ConditionGroups[0].Conditions[0].SubjectExternalField
expectedMappedOtherFixture := s.f.GetSubjectMappingKey("subject_mapping_subject_simple_not_in")
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: externalField,
ExternalValue: externalValues[0],
@@ -919,7 +919,7 @@ func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_InOneAndNotInASecon
}
func (s *SubjectMappingsSuite) TestGetMatchedSubjectMappings_NonExistentField_ReturnsNoMappings() {
- props := []*subjectmapping.SubjectProperty{
+ props := []*policy.SubjectProperty{
{
ExternalField: "non_existent_field",
ExternalValue: "non_existent_value",
@@ -952,7 +952,7 @@ func (s *SubjectMappingsSuite) TestUpdateSubjectConditionSet_MetadataVariations(
}
created, err := s.db.PolicyClient.CreateSubjectConditionSet(s.ctx, &subjectmapping.SubjectConditionSetCreate{
- SubjectSets: []*subjectmapping.SubjectSet{
+ SubjectSets: []*policy.SubjectSet{
{},
},
Metadata: &common.MetadataMutable{
diff --git a/internal/access/pdp.go b/internal/access/pdp.go
index bdffe3a..c752565 100644
--- a/internal/access/pdp.go
+++ b/internal/access/pdp.go
@@ -5,7 +5,7 @@ import (
"fmt"
"log/slog"
- attrs "github.com/opentdf/platform/protocol/go/policy/attributes"
+ "github.com/opentdf/platform/protocol/go/policy"
)
type Pdp struct {
@@ -22,7 +22,7 @@ func (pdp *Pdp) DetermineAccess(
ctx context.Context,
dataAttributes []attributeInstance,
entityAttributeSets map[string][]attributeInstance,
- attributeDefinitions []*attrs.Attribute,
+ attributeDefinitions []*policy.Attribute,
) (map[string]*Decision, error) {
slog.DebugContext(ctx, "DetermineAccess")
// Cluster (e.g. group) all the Data AttributeInstances by CanonicalName (that is, "
-
-
-
- Name Number Description
-
-
- SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED
- 0
-
-
-
-
- SUBJECT_MAPPING_OPERATOR_ENUM_IN
- 1
-
-
-
-
-
- SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN
- 2
-
- repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
@java.lang.Override
- public java.util.Listrepeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList() {
return actions_;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
@java.lang.Override
- public io.opentdf.platform.authorization.Action getActions(int index) {
+ public io.opentdf.platform.policy.Action getActions(int index) {
return actions_.get(index);
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
@java.lang.Override
- public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ public io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index) {
return actions_.get(index);
}
@@ -712,9 +712,9 @@ public Builder mergeFrom(
done = true;
break;
case 10: {
- io.opentdf.platform.authorization.Action m =
+ io.opentdf.platform.policy.Action m =
input.readMessage(
- io.opentdf.platform.authorization.Action.parser(),
+ io.opentdf.platform.policy.Action.parser(),
extensionRegistry);
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
@@ -767,22 +767,22 @@ public Builder mergeFrom(
}
private int bitField0_;
- private java.util.Listrepeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public java.util.Listrepeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public int getActionsCount() {
if (actionsBuilder_ == null) {
@@ -800,9 +800,9 @@ public int getActionsCount() {
}
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action getActions(int index) {
+ public io.opentdf.platform.policy.Action getActions(int index) {
if (actionsBuilder_ == null) {
return actions_.get(index);
} else {
@@ -810,10 +810,10 @@ public io.opentdf.platform.authorization.Action getActions(int index) {
}
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder setActions(
- int index, io.opentdf.platform.authorization.Action value) {
+ int index, io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -827,10 +827,10 @@ public Builder setActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder setActions(
- int index, io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.set(index, builderForValue.build());
@@ -841,9 +841,9 @@ public Builder setActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public Builder addActions(io.opentdf.platform.authorization.Action value) {
+ public Builder addActions(io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -857,10 +857,10 @@ public Builder addActions(io.opentdf.platform.authorization.Action value) {
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder addActions(
- int index, io.opentdf.platform.authorization.Action value) {
+ int index, io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -874,10 +874,10 @@ public Builder addActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder addActions(
- io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(builderForValue.build());
@@ -888,10 +888,10 @@ public Builder addActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder addActions(
- int index, io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(index, builderForValue.build());
@@ -902,10 +902,10 @@ public Builder addActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder addAllActions(
- java.lang.Iterable extends io.opentdf.platform.authorization.Action> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.Action> values) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -917,7 +917,7 @@ public Builder addAllActions(
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
@@ -930,7 +930,7 @@ public Builder clearActions() {
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
public Builder removeActions(int index) {
if (actionsBuilder_ == null) {
@@ -943,16 +943,16 @@ public Builder removeActions(int index) {
return this;
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder getActionsBuilder(
+ public io.opentdf.platform.policy.Action.Builder getActionsBuilder(
int index) {
return getActionsFieldBuilder().getBuilder(index);
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ public io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index) {
if (actionsBuilder_ == null) {
return actions_.get(index); } else {
@@ -960,9 +960,9 @@ public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
}
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilderList();
@@ -971,33 +971,33 @@ public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
}
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder addActionsBuilder() {
+ public io.opentdf.platform.policy.Action.Builder addActionsBuilder() {
return getActionsFieldBuilder().addBuilder(
- io.opentdf.platform.authorization.Action.getDefaultInstance());
+ io.opentdf.platform.policy.Action.getDefaultInstance());
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder addActionsBuilder(
+ public io.opentdf.platform.policy.Action.Builder addActionsBuilder(
int index) {
return getActionsFieldBuilder().addBuilder(
- index, io.opentdf.platform.authorization.Action.getDefaultInstance());
+ index, io.opentdf.platform.policy.Action.getDefaultInstance());
}
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- public java.util.Listrepeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- java.util.Listrepeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- io.opentdf.platform.authorization.Action getActions(int index);
+ io.opentdf.platform.policy.Action getActions(int index);
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
int getActionsCount();
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList();
/**
- * repeated .authorization.Action actions = 1 [json_name = "actions"];
+ * repeated .policy.Action actions = 1 [json_name = "actions"];
*/
- io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index);
/**
diff --git a/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponse.java b/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponse.java
index 2416707..19f4c68 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponse.java
@@ -295,13 +295,13 @@ public java.lang.String getResourceAttributesId() {
}
public static final int ACTION_FIELD_NUMBER = 3;
- private io.opentdf.platform.authorization.Action action_;
+ private io.opentdf.platform.policy.Action action_;
/**
*
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return Whether the action field is set.
*/
@java.lang.Override
@@ -313,23 +313,23 @@ public boolean hasAction() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return The action.
*/
@java.lang.Override
- public io.opentdf.platform.authorization.Action getAction() {
- return action_ == null ? io.opentdf.platform.authorization.Action.getDefaultInstance() : action_;
+ public io.opentdf.platform.policy.Action getAction() {
+ return action_ == null ? io.opentdf.platform.policy.Action.getDefaultInstance() : action_;
}
/**
*
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
@java.lang.Override
- public io.opentdf.platform.authorization.ActionOrBuilder getActionOrBuilder() {
- return action_ == null ? io.opentdf.platform.authorization.Action.getDefaultInstance() : action_;
+ public io.opentdf.platform.policy.ActionOrBuilder getActionOrBuilder() {
+ return action_ == null ? io.opentdf.platform.policy.Action.getDefaultInstance() : action_;
}
public static final int DECISION_FIELD_NUMBER = 4;
@@ -1089,15 +1089,15 @@ public Builder setResourceAttributesIdBytes(
return this;
}
- private io.opentdf.platform.authorization.Action action_;
+ private io.opentdf.platform.policy.Action action_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.authorization.Action, io.opentdf.platform.authorization.Action.Builder, io.opentdf.platform.authorization.ActionOrBuilder> actionBuilder_;
+ io.opentdf.platform.policy.Action, io.opentdf.platform.policy.Action.Builder, io.opentdf.platform.policy.ActionOrBuilder> actionBuilder_;
/**
*
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return Whether the action field is set.
*/
public boolean hasAction() {
@@ -1108,12 +1108,12 @@ public boolean hasAction() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return The action.
*/
- public io.opentdf.platform.authorization.Action getAction() {
+ public io.opentdf.platform.policy.Action getAction() {
if (actionBuilder_ == null) {
- return action_ == null ? io.opentdf.platform.authorization.Action.getDefaultInstance() : action_;
+ return action_ == null ? io.opentdf.platform.policy.Action.getDefaultInstance() : action_;
} else {
return actionBuilder_.getMessage();
}
@@ -1123,9 +1123,9 @@ public io.opentdf.platform.authorization.Action getAction() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
- public Builder setAction(io.opentdf.platform.authorization.Action value) {
+ public Builder setAction(io.opentdf.platform.policy.Action value) {
if (actionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1143,10 +1143,10 @@ public Builder setAction(io.opentdf.platform.authorization.Action value) {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
public Builder setAction(
- io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionBuilder_ == null) {
action_ = builderForValue.build();
} else {
@@ -1161,13 +1161,13 @@ public Builder setAction(
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
- public Builder mergeAction(io.opentdf.platform.authorization.Action value) {
+ public Builder mergeAction(io.opentdf.platform.policy.Action value) {
if (actionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
action_ != null &&
- action_ != io.opentdf.platform.authorization.Action.getDefaultInstance()) {
+ action_ != io.opentdf.platform.policy.Action.getDefaultInstance()) {
getActionBuilder().mergeFrom(value);
} else {
action_ = value;
@@ -1186,7 +1186,7 @@ public Builder mergeAction(io.opentdf.platform.authorization.Action value) {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
public Builder clearAction() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1203,9 +1203,9 @@ public Builder clearAction() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
- public io.opentdf.platform.authorization.Action.Builder getActionBuilder() {
+ public io.opentdf.platform.policy.Action.Builder getActionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getActionFieldBuilder().getBuilder();
@@ -1215,14 +1215,14 @@ public io.opentdf.platform.authorization.Action.Builder getActionBuilder() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
- public io.opentdf.platform.authorization.ActionOrBuilder getActionOrBuilder() {
+ public io.opentdf.platform.policy.ActionOrBuilder getActionOrBuilder() {
if (actionBuilder_ != null) {
return actionBuilder_.getMessageOrBuilder();
} else {
return action_ == null ?
- io.opentdf.platform.authorization.Action.getDefaultInstance() : action_;
+ io.opentdf.platform.policy.Action.getDefaultInstance() : action_;
}
}
/**
@@ -1230,14 +1230,14 @@ public io.opentdf.platform.authorization.ActionOrBuilder getActionOrBuilder() {
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.authorization.Action, io.opentdf.platform.authorization.Action.Builder, io.opentdf.platform.authorization.ActionOrBuilder>
+ io.opentdf.platform.policy.Action, io.opentdf.platform.policy.Action.Builder, io.opentdf.platform.policy.ActionOrBuilder>
getActionFieldBuilder() {
if (actionBuilder_ == null) {
actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.authorization.Action, io.opentdf.platform.authorization.Action.Builder, io.opentdf.platform.authorization.ActionOrBuilder>(
+ io.opentdf.platform.policy.Action, io.opentdf.platform.policy.Action.Builder, io.opentdf.platform.policy.ActionOrBuilder>(
getAction(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponseOrBuilder.java
index 7ef3e46..8a9923b 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/authorization/DecisionResponseOrBuilder.java
@@ -53,7 +53,7 @@ public interface DecisionResponseOrBuilder extends
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return Whether the action field is set.
*/
boolean hasAction();
@@ -62,18 +62,18 @@ public interface DecisionResponseOrBuilder extends
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
* @return The action.
*/
- io.opentdf.platform.authorization.Action getAction();
+ io.opentdf.platform.policy.Action getAction();
/**
*
* Action of the decision response
*
*
- * .authorization.Action action = 3 [json_name = "action"];
+ * .policy.Action action = 3 [json_name = "action"];
*/
- io.opentdf.platform.authorization.ActionOrBuilder getActionOrBuilder();
+ io.opentdf.platform.policy.ActionOrBuilder getActionOrBuilder();
/**
*
diff --git a/sdkjava/src/main/java/io/opentdf/platform/authorization/Action.java b/sdkjava/src/main/java/io/opentdf/platform/policy/Action.java
similarity index 79%
rename from sdkjava/src/main/java/io/opentdf/platform/authorization/Action.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/Action.java
index 521c381..1c06f79 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/authorization/Action.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/Action.java
@@ -1,19 +1,19 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: authorization/authorization.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.authorization;
+package io.opentdf.platform.policy;
/**
*
*
- * Protobuf enum {@code authorization.Action.StandardAction}
+ * Protobuf enum {@code policy.Action.StandardAction}
*/
public enum StandardAction
implements com.google.protobuf.ProtocolMessageEnum {
@@ -138,7 +138,7 @@ public StandardAction findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return io.opentdf.platform.authorization.Action.getDescriptor().getEnumTypes().get(0);
+ return io.opentdf.platform.policy.Action.getDescriptor().getEnumTypes().get(0);
}
private static final StandardAction[] VALUES = values();
@@ -161,7 +161,7 @@ private StandardAction(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:authorization.Action.StandardAction)
+ // @@protoc_insertion_point(enum_scope:policy.Action.StandardAction)
}
private int valueCase_ = 0;
@@ -208,14 +208,14 @@ public int getNumber() {
public static final int STANDARD_FIELD_NUMBER = 1;
/**
- *
* An action an entity can take
*
*
- * Protobuf type {@code authorization.Action}
+ * Protobuf type {@code policy.Action}
*/
public final class Action extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:authorization.Action)
+ // @@protoc_insertion_point(message_implements:policy.Action)
ActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Action.newBuilder() to construct.
@@ -32,15 +32,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.authorization.AuthorizationProto.internal_static_authorization_Action_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Action_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.authorization.AuthorizationProto.internal_static_authorization_Action_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.authorization.Action.class, io.opentdf.platform.authorization.Action.Builder.class);
+ io.opentdf.platform.policy.Action.class, io.opentdf.platform.policy.Action.Builder.class);
}
/**
@@ -48,7 +48,7 @@ protected java.lang.Object newInstance(
* Standard actions supported by the platform
* .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return Whether the standard field is set.
*/
public boolean hasStandard() {
return valueCase_ == 1;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The enum numeric value on the wire for standard.
*/
public int getStandardValue() {
@@ -225,16 +225,16 @@ public int getStandardValue() {
return 0;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The standard.
*/
- public io.opentdf.platform.authorization.Action.StandardAction getStandard() {
+ public io.opentdf.platform.policy.Action.StandardAction getStandard() {
if (valueCase_ == 1) {
- io.opentdf.platform.authorization.Action.StandardAction result = io.opentdf.platform.authorization.Action.StandardAction.forNumber(
+ io.opentdf.platform.policy.Action.StandardAction result = io.opentdf.platform.policy.Action.StandardAction.forNumber(
(java.lang.Integer) value_);
- return result == null ? io.opentdf.platform.authorization.Action.StandardAction.UNRECOGNIZED : result;
+ return result == null ? io.opentdf.platform.policy.Action.StandardAction.UNRECOGNIZED : result;
}
- return io.opentdf.platform.authorization.Action.StandardAction.STANDARD_ACTION_UNSPECIFIED;
+ return io.opentdf.platform.policy.Action.StandardAction.STANDARD_ACTION_UNSPECIFIED;
}
public static final int CUSTOM_FIELD_NUMBER = 2;
@@ -335,10 +335,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.authorization.Action)) {
+ if (!(obj instanceof io.opentdf.platform.policy.Action)) {
return super.equals(obj);
}
- io.opentdf.platform.authorization.Action other = (io.opentdf.platform.authorization.Action) obj;
+ io.opentdf.platform.policy.Action other = (io.opentdf.platform.policy.Action) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
@@ -381,44 +381,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.authorization.Action parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.Action parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.authorization.Action parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Action parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -426,26 +426,26 @@ public static io.opentdf.platform.authorization.Action parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.authorization.Action parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Action parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.authorization.Action parseDelimitedFrom(
+ public static io.opentdf.platform.policy.Action 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 io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.authorization.Action parseFrom(
+ public static io.opentdf.platform.policy.Action parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -458,7 +458,7 @@ public static io.opentdf.platform.authorization.Action parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.authorization.Action prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.Action prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -478,26 +478,26 @@ protected Builder newBuilderForType(
* An action an entity can take
*
*
- * Protobuf type {@code authorization.Action}
+ * Protobuf type {@code policy.Action}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return Whether the standard field is set.
*/
@java.lang.Override
@@ -692,7 +692,7 @@ public boolean hasStandard() {
return valueCase_ == 1;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The enum numeric value on the wire for standard.
*/
@java.lang.Override
@@ -703,7 +703,7 @@ public int getStandardValue() {
return 0;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @param value The enum numeric value on the wire for standard to set.
* @return This builder for chaining.
*/
@@ -714,24 +714,24 @@ public Builder setStandardValue(int value) {
return this;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The standard.
*/
@java.lang.Override
- public io.opentdf.platform.authorization.Action.StandardAction getStandard() {
+ public io.opentdf.platform.policy.Action.StandardAction getStandard() {
if (valueCase_ == 1) {
- io.opentdf.platform.authorization.Action.StandardAction result = io.opentdf.platform.authorization.Action.StandardAction.forNumber(
+ io.opentdf.platform.policy.Action.StandardAction result = io.opentdf.platform.policy.Action.StandardAction.forNumber(
(java.lang.Integer) value_);
- return result == null ? io.opentdf.platform.authorization.Action.StandardAction.UNRECOGNIZED : result;
+ return result == null ? io.opentdf.platform.policy.Action.StandardAction.UNRECOGNIZED : result;
}
- return io.opentdf.platform.authorization.Action.StandardAction.STANDARD_ACTION_UNSPECIFIED;
+ return io.opentdf.platform.policy.Action.StandardAction.STANDARD_ACTION_UNSPECIFIED;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @param value The standard to set.
* @return This builder for chaining.
*/
- public Builder setStandard(io.opentdf.platform.authorization.Action.StandardAction value) {
+ public Builder setStandard(io.opentdf.platform.policy.Action.StandardAction value) {
if (value == null) {
throw new NullPointerException();
}
@@ -741,7 +741,7 @@ public Builder setStandard(io.opentdf.platform.authorization.Action.StandardActi
return this;
}
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return This builder for chaining.
*/
public Builder clearStandard() {
@@ -858,16 +858,16 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:authorization.Action)
+ // @@protoc_insertion_point(builder_scope:policy.Action)
}
- // @@protoc_insertion_point(class_scope:authorization.Action)
- private static final io.opentdf.platform.authorization.Action DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.Action)
+ private static final io.opentdf.platform.policy.Action DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.authorization.Action();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.Action();
}
- public static io.opentdf.platform.authorization.Action getDefaultInstance() {
+ public static io.opentdf.platform.policy.Action getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@@ -903,7 +903,7 @@ public com.google.protobuf.Parser.authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return Whether the standard field is set.
*/
boolean hasStandard();
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The enum numeric value on the wire for standard.
*/
int getStandardValue();
/**
- * .authorization.Action.StandardAction standard = 1 [json_name = "standard"];
+ * .policy.Action.StandardAction standard = 1 [json_name = "standard"];
* @return The standard.
*/
- io.opentdf.platform.authorization.Action.StandardAction getStandard();
+ io.opentdf.platform.policy.Action.StandardAction getStandard();
/**
* string custom = 2 [json_name = "custom"];
@@ -41,5 +41,5 @@ public interface ActionOrBuilder extends
com.google.protobuf.ByteString
getCustomBytes();
- io.opentdf.platform.authorization.Action.ValueCase getValueCase();
+ io.opentdf.platform.policy.Action.ValueCase getValueCase();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Attribute.java b/sdkjava/src/main/java/io/opentdf/platform/policy/Attribute.java
similarity index 82%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Attribute.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/Attribute.java
index 1473be2..a540bf7 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Attribute.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/Attribute.java
@@ -1,15 +1,15 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/attributes/attributes.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.attributes;
+package io.opentdf.platform.policy;
/**
- * Protobuf type {@code policy.attributes.Attribute}
+ * Protobuf type {@code policy.Attribute}
*/
public final class Attribute extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.attributes.Attribute)
+ // @@protoc_insertion_point(message_implements:policy.Attribute)
AttributeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Attribute.newBuilder() to construct.
@@ -34,15 +34,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_Attribute_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Attribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_Attribute_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Attribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.attributes.Attribute.class, io.opentdf.platform.policy.attributes.Attribute.Builder.class);
+ io.opentdf.platform.policy.Attribute.class, io.opentdf.platform.policy.Attribute.Builder.class);
}
private int bitField0_;
@@ -86,13 +86,13 @@ public java.lang.String getId() {
}
public static final int NAMESPACE_FIELD_NUMBER = 2;
- private io.opentdf.platform.policy.namespaces.Namespace namespace_;
+ private io.opentdf.platform.policy.Namespace namespace_;
/**
*
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return Whether the namespace field is set.
*/
@java.lang.Override
@@ -104,23 +104,23 @@ public boolean hasNamespace() {
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return The namespace.
*/
@java.lang.Override
- public io.opentdf.platform.policy.namespaces.Namespace getNamespace() {
- return namespace_ == null ? io.opentdf.platform.policy.namespaces.Namespace.getDefaultInstance() : namespace_;
+ public io.opentdf.platform.policy.Namespace getNamespace() {
+ return namespace_ == null ? io.opentdf.platform.policy.Namespace.getDefaultInstance() : namespace_;
}
/**
*
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.namespaces.NamespaceOrBuilder getNamespaceOrBuilder() {
- return namespace_ == null ? io.opentdf.platform.policy.namespaces.Namespace.getDefaultInstance() : namespace_;
+ public io.opentdf.platform.policy.NamespaceOrBuilder getNamespaceOrBuilder() {
+ return namespace_ == null ? io.opentdf.platform.policy.Namespace.getDefaultInstance() : namespace_;
}
public static final int NAME_FIELD_NUMBER = 3;
@@ -177,7 +177,7 @@ public java.lang.String getName() {
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
@@ -188,51 +188,51 @@ public java.lang.String getName() {
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
- @java.lang.Override public io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule() {
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum result = io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.forNumber(rule_);
- return result == null ? io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.UNRECOGNIZED : result;
+ @java.lang.Override public io.opentdf.platform.policy.AttributeRuleTypeEnum getRule() {
+ io.opentdf.platform.policy.AttributeRuleTypeEnum result = io.opentdf.platform.policy.AttributeRuleTypeEnum.forNumber(rule_);
+ return result == null ? io.opentdf.platform.policy.AttributeRuleTypeEnum.UNRECOGNIZED : result;
}
public static final int VALUES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
- private java.util.Listrepeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
@java.lang.Override
- public java.util.Listrepeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getValues(int index) {
+ public io.opentdf.platform.policy.Value getValues(int index) {
return values_.get(index);
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValuesOrBuilder(
+ public io.opentdf.platform.policy.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
@@ -416,7 +416,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
- if (rule_ != io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (rule_ != io.opentdf.platform.policy.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
output.writeEnum(4, rule_);
}
for (int i = 0; i < values_.size(); i++) {
@@ -453,7 +453,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
- if (rule_ != io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (rule_ != io.opentdf.platform.policy.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, rule_);
}
@@ -486,10 +486,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.attributes.Attribute)) {
+ if (!(obj instanceof io.opentdf.platform.policy.Attribute)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.attributes.Attribute other = (io.opentdf.platform.policy.attributes.Attribute) obj;
+ io.opentdf.platform.policy.Attribute other = (io.opentdf.platform.policy.Attribute) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -561,44 +561,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.Attribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Attribute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -606,26 +606,26 @@ public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Attribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseDelimitedFrom(
+ public static io.opentdf.platform.policy.Attribute 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 io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
+ public static io.opentdf.platform.policy.Attribute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -638,7 +638,7 @@ public static io.opentdf.platform.policy.attributes.Attribute parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.attributes.Attribute prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.Attribute prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -654,26 +654,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code policy.attributes.Attribute}
+ * Protobuf type {@code policy.Attribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return Whether the namespace field is set.
*/
public boolean hasNamespace() {
@@ -1143,12 +1143,12 @@ public boolean hasNamespace() {
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return The namespace.
*/
- public io.opentdf.platform.policy.namespaces.Namespace getNamespace() {
+ public io.opentdf.platform.policy.Namespace getNamespace() {
if (namespaceBuilder_ == null) {
- return namespace_ == null ? io.opentdf.platform.policy.namespaces.Namespace.getDefaultInstance() : namespace_;
+ return namespace_ == null ? io.opentdf.platform.policy.Namespace.getDefaultInstance() : namespace_;
} else {
return namespaceBuilder_.getMessage();
}
@@ -1158,9 +1158,9 @@ public io.opentdf.platform.policy.namespaces.Namespace getNamespace() {
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
- public Builder setNamespace(io.opentdf.platform.policy.namespaces.Namespace value) {
+ public Builder setNamespace(io.opentdf.platform.policy.Namespace value) {
if (namespaceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1178,10 +1178,10 @@ public Builder setNamespace(io.opentdf.platform.policy.namespaces.Namespace valu
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
public Builder setNamespace(
- io.opentdf.platform.policy.namespaces.Namespace.Builder builderForValue) {
+ io.opentdf.platform.policy.Namespace.Builder builderForValue) {
if (namespaceBuilder_ == null) {
namespace_ = builderForValue.build();
} else {
@@ -1196,13 +1196,13 @@ public Builder setNamespace(
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
- public Builder mergeNamespace(io.opentdf.platform.policy.namespaces.Namespace value) {
+ public Builder mergeNamespace(io.opentdf.platform.policy.Namespace value) {
if (namespaceBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
namespace_ != null &&
- namespace_ != io.opentdf.platform.policy.namespaces.Namespace.getDefaultInstance()) {
+ namespace_ != io.opentdf.platform.policy.Namespace.getDefaultInstance()) {
getNamespaceBuilder().mergeFrom(value);
} else {
namespace_ = value;
@@ -1221,7 +1221,7 @@ public Builder mergeNamespace(io.opentdf.platform.policy.namespaces.Namespace va
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
public Builder clearNamespace() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1238,9 +1238,9 @@ public Builder clearNamespace() {
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
- public io.opentdf.platform.policy.namespaces.Namespace.Builder getNamespaceBuilder() {
+ public io.opentdf.platform.policy.Namespace.Builder getNamespaceBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNamespaceFieldBuilder().getBuilder();
@@ -1250,14 +1250,14 @@ public io.opentdf.platform.policy.namespaces.Namespace.Builder getNamespaceBuild
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
- public io.opentdf.platform.policy.namespaces.NamespaceOrBuilder getNamespaceOrBuilder() {
+ public io.opentdf.platform.policy.NamespaceOrBuilder getNamespaceOrBuilder() {
if (namespaceBuilder_ != null) {
return namespaceBuilder_.getMessageOrBuilder();
} else {
return namespace_ == null ?
- io.opentdf.platform.policy.namespaces.Namespace.getDefaultInstance() : namespace_;
+ io.opentdf.platform.policy.Namespace.getDefaultInstance() : namespace_;
}
}
/**
@@ -1265,14 +1265,14 @@ public io.opentdf.platform.policy.namespaces.NamespaceOrBuilder getNamespaceOrBu
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.namespaces.Namespace, io.opentdf.platform.policy.namespaces.Namespace.Builder, io.opentdf.platform.policy.namespaces.NamespaceOrBuilder>
+ io.opentdf.platform.policy.Namespace, io.opentdf.platform.policy.Namespace.Builder, io.opentdf.platform.policy.NamespaceOrBuilder>
getNamespaceFieldBuilder() {
if (namespaceBuilder_ == null) {
namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.namespaces.Namespace, io.opentdf.platform.policy.namespaces.Namespace.Builder, io.opentdf.platform.policy.namespaces.NamespaceOrBuilder>(
+ io.opentdf.platform.policy.Namespace, io.opentdf.platform.policy.Namespace.Builder, io.opentdf.platform.policy.NamespaceOrBuilder>(
getNamespace(),
getParentForChildren(),
isClean());
@@ -1379,7 +1379,7 @@ public Builder setNameBytes(
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
@@ -1390,7 +1390,7 @@ public Builder setNameBytes(
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @param value The enum numeric value on the wire for rule to set.
* @return This builder for chaining.
*/
@@ -1405,24 +1405,24 @@ public Builder setRuleValue(int value) {
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule() {
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum result = io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.forNumber(rule_);
- return result == null ? io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.UNRECOGNIZED : result;
+ public io.opentdf.platform.policy.AttributeRuleTypeEnum getRule() {
+ io.opentdf.platform.policy.AttributeRuleTypeEnum result = io.opentdf.platform.policy.AttributeRuleTypeEnum.forNumber(rule_);
+ return result == null ? io.opentdf.platform.policy.AttributeRuleTypeEnum.UNRECOGNIZED : result;
}
/**
*
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @param value The rule to set.
* @return This builder for chaining.
*/
- public Builder setRule(io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum value) {
+ public Builder setRule(io.opentdf.platform.policy.AttributeRuleTypeEnum value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1436,7 +1436,7 @@ public Builder setRule(io.opentdf.platform.policy.attributes.AttributeRuleTypeEn
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearRule() {
@@ -1446,22 +1446,22 @@ public Builder clearRule() {
return this;
}
- private java.util.Listrepeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public java.util.Listrepeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
@@ -1479,9 +1479,9 @@ public int getValuesCount() {
}
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public io.opentdf.platform.policy.attributes.Value getValues(int index) {
+ public io.opentdf.platform.policy.Value getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
@@ -1489,10 +1489,10 @@ public io.opentdf.platform.policy.attributes.Value getValues(int index) {
}
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder setValues(
- int index, io.opentdf.platform.policy.attributes.Value value) {
+ int index, io.opentdf.platform.policy.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1506,10 +1506,10 @@ public Builder setValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder setValues(
- int index, io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
@@ -1520,9 +1520,9 @@ public Builder setValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public Builder addValues(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder addValues(io.opentdf.platform.policy.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1536,10 +1536,10 @@ public Builder addValues(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder addValues(
- int index, io.opentdf.platform.policy.attributes.Value value) {
+ int index, io.opentdf.platform.policy.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1553,10 +1553,10 @@ public Builder addValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder addValues(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
@@ -1567,10 +1567,10 @@ public Builder addValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder addValues(
- int index, io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
@@ -1581,10 +1581,10 @@ public Builder addValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder addAllValues(
- java.lang.Iterable extends io.opentdf.platform.policy.attributes.Value> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.Value> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1596,7 +1596,7 @@ public Builder addAllValues(
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
@@ -1609,7 +1609,7 @@ public Builder clearValues() {
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
@@ -1622,16 +1622,16 @@ public Builder removeValues(int index) {
return this;
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getValuesBuilder(
+ public io.opentdf.platform.policy.Value.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValuesOrBuilder(
+ public io.opentdf.platform.policy.ValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
@@ -1639,9 +1639,9 @@ public io.opentdf.platform.policy.attributes.ValueOrBuilder getValuesOrBuilder(
}
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public java.util.List extends io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
@@ -1650,33 +1650,33 @@ public io.opentdf.platform.policy.attributes.ValueOrBuilder getValuesOrBuilder(
}
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder addValuesBuilder() {
+ public io.opentdf.platform.policy.Value.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance());
+ io.opentdf.platform.policy.Value.getDefaultInstance());
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder addValuesBuilder(
+ public io.opentdf.platform.policy.Value.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
- index, io.opentdf.platform.policy.attributes.Value.getDefaultInstance());
+ index, io.opentdf.platform.policy.Value.getDefaultInstance());
}
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- public java.util.Listbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ boolean getWithSubjectMaps();
+
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ boolean getWithResourceMaps();
+ }
+ /**
+ * Protobuf type {@code policy.AttributeDefinitionSelector.ValueSelector}
+ */
+ public static final class ValueSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeDefinitionSelector.ValueSelector)
+ ValueSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ValueSelector.newBuilder() to construct.
+ private ValueSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ValueSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ValueSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeDefinitionSelector_ValueSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeDefinitionSelector_ValueSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.class, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder.class);
+ }
+
+ public static final int WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER = 1;
+ private boolean withKeyAccessGrants_ = false;
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_SUBJECT_MAPS_FIELD_NUMBER = 2;
+ private boolean withSubjectMaps_ = false;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+
+ public static final int WITH_RESOURCE_MAPS_FIELD_NUMBER = 3;
+ private boolean withResourceMaps_ = false;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ output.writeBool(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ output.writeBool(3, withResourceMaps_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, withResourceMaps_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector other = (io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (getWithSubjectMaps()
+ != other.getWithSubjectMaps()) return false;
+ if (getWithResourceMaps()
+ != other.getWithResourceMaps()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ hash = (37 * hash) + WITH_SUBJECT_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithSubjectMaps());
+ hash = (37 * hash) + WITH_RESOURCE_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithResourceMaps());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector 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 io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector 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 io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector 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(io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector 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 policy.AttributeDefinitionSelector.ValueSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withSubjectMaps_ ;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @param value The withSubjectMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithSubjectMaps(boolean value) {
+
+ withSubjectMaps_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithSubjectMaps() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withSubjectMaps_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withResourceMaps_ ;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @param value The withResourceMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithResourceMaps(boolean value) {
+
+ withResourceMaps_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithResourceMaps() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ withResourceMaps_ = false;
+ 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:policy.AttributeDefinitionSelector.ValueSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeDefinitionSelector.ValueSelector)
+ private static final io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_NAMESPACE_FIELD_NUMBER = 10;
+ private io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector withNamespace_;
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithNamespace() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector getWithNamespace() {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder() {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+
+ public static final int WITH_VALUES_FIELD_NUMBER = 11;
+ private io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector withValues_;
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithValues() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector getWithValues() {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder getWithValuesOrBuilder() {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(10, getWithNamespace());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(11, getWithValues());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getWithNamespace());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, getWithValues());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeDefinitionSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeDefinitionSelector other = (io.opentdf.platform.policy.AttributeDefinitionSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (hasWithNamespace() != other.hasWithNamespace()) return false;
+ if (hasWithNamespace()) {
+ if (!getWithNamespace()
+ .equals(other.getWithNamespace())) return false;
+ }
+ if (hasWithValues() != other.hasWithValues()) return false;
+ if (hasWithValues()) {
+ if (!getWithValues()
+ .equals(other.getWithValues())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ if (hasWithNamespace()) {
+ hash = (37 * hash) + WITH_NAMESPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getWithNamespace().hashCode();
+ }
+ if (hasWithValues()) {
+ hash = (37 * hash) + WITH_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getWithValues().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector 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 io.opentdf.platform.policy.AttributeDefinitionSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector 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 io.opentdf.platform.policy.AttributeDefinitionSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector 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(io.opentdf.platform.policy.AttributeDefinitionSelector 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 policy.AttributeDefinitionSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector withNamespace_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder> withNamespaceBuilder_;
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ public boolean hasWithNamespace() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector getWithNamespace() {
+ if (withNamespaceBuilder_ == null) {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ } else {
+ return withNamespaceBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder setWithNamespace(io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector value) {
+ if (withNamespaceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withNamespace_ = value;
+ } else {
+ withNamespaceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder setWithNamespace(
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.Builder builderForValue) {
+ if (withNamespaceBuilder_ == null) {
+ withNamespace_ = builderForValue.build();
+ } else {
+ withNamespaceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder mergeWithNamespace(io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector value) {
+ if (withNamespaceBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ withNamespace_ != null &&
+ withNamespace_ != io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.getDefaultInstance()) {
+ getWithNamespaceBuilder().mergeFrom(value);
+ } else {
+ withNamespace_ = value;
+ }
+ } else {
+ withNamespaceBuilder_.mergeFrom(value);
+ }
+ if (withNamespace_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder clearWithNamespace() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withNamespace_ = null;
+ if (withNamespaceBuilder_ != null) {
+ withNamespaceBuilder_.dispose();
+ withNamespaceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.Builder getWithNamespaceBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getWithNamespaceFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder() {
+ if (withNamespaceBuilder_ != null) {
+ return withNamespaceBuilder_.getMessageOrBuilder();
+ } else {
+ return withNamespace_ == null ?
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder>
+ getWithNamespaceFieldBuilder() {
+ if (withNamespaceBuilder_ == null) {
+ withNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder>(
+ getWithNamespace(),
+ getParentForChildren(),
+ isClean());
+ withNamespace_ = null;
+ }
+ return withNamespaceBuilder_;
+ }
+
+ private io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector withValues_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder> withValuesBuilder_;
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ public boolean hasWithValues() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector getWithValues() {
+ if (withValuesBuilder_ == null) {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.getDefaultInstance() : withValues_;
+ } else {
+ return withValuesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public Builder setWithValues(io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector value) {
+ if (withValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withValues_ = value;
+ } else {
+ withValuesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public Builder setWithValues(
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder builderForValue) {
+ if (withValuesBuilder_ == null) {
+ withValues_ = builderForValue.build();
+ } else {
+ withValuesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public Builder mergeWithValues(io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector value) {
+ if (withValuesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ withValues_ != null &&
+ withValues_ != io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.getDefaultInstance()) {
+ getWithValuesBuilder().mergeFrom(value);
+ } else {
+ withValues_ = value;
+ }
+ } else {
+ withValuesBuilder_.mergeFrom(value);
+ }
+ if (withValues_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public Builder clearWithValues() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ withValues_ = null;
+ if (withValuesBuilder_ != null) {
+ withValuesBuilder_.dispose();
+ withValuesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder getWithValuesBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getWithValuesFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ public io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder getWithValuesOrBuilder() {
+ if (withValuesBuilder_ != null) {
+ return withValuesBuilder_.getMessageOrBuilder();
+ } else {
+ return withValues_ == null ?
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+ }
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder>
+ getWithValuesFieldBuilder() {
+ if (withValuesBuilder_ == null) {
+ withValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder>(
+ getWithValues(),
+ getParentForChildren(),
+ isClean());
+ withValues_ = null;
+ }
+ return withValuesBuilder_;
+ }
+ @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:policy.AttributeDefinitionSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeDefinitionSelector)
+ private static final io.opentdf.platform.policy.AttributeDefinitionSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeDefinitionSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeDefinitionSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ boolean hasWithNamespace();
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelector getWithNamespace();
+ /**
+ * .policy.AttributeDefinitionSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ io.opentdf.platform.policy.AttributeDefinitionSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder();
+
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ boolean hasWithValues();
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelector getWithValues();
+ /**
+ * .policy.AttributeDefinitionSelector.ValueSelector with_values = 11 [json_name = "withValues"];
+ */
+ io.opentdf.platform.policy.AttributeDefinitionSelector.ValueSelectorOrBuilder getWithValuesOrBuilder();
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeNamespaceSelector.java b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeNamespaceSelector.java
new file mode 100644
index 0000000..5031534
--- /dev/null
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeNamespaceSelector.java
@@ -0,0 +1,1907 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: policy/selectors.proto
+
+// Protobuf Java Version: 3.25.3
+package io.opentdf.platform.policy;
+
+/**
+ * Protobuf type {@code policy.AttributeNamespaceSelector}
+ */
+public final class AttributeNamespaceSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeNamespaceSelector)
+ AttributeNamespaceSelectorOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use AttributeNamespaceSelector.newBuilder() to construct.
+ private AttributeNamespaceSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AttributeNamespaceSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AttributeNamespaceSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeNamespaceSelector.class, io.opentdf.platform.policy.AttributeNamespaceSelector.Builder.class);
+ }
+
+ public interface AttributeSelectorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:policy.AttributeNamespaceSelector.AttributeSelector)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ boolean hasWithValues();
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector getWithValues();
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder getWithValuesOrBuilder();
+ }
+ /**
+ * Protobuf type {@code policy.AttributeNamespaceSelector.AttributeSelector}
+ */
+ public static final class AttributeSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeNamespaceSelector.AttributeSelector)
+ AttributeSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AttributeSelector.newBuilder() to construct.
+ private AttributeSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AttributeSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AttributeSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_AttributeSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_AttributeSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.class, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.Builder.class);
+ }
+
+ public interface ValueSelectorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ boolean getWithSubjectMaps();
+
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ boolean getWithResourceMaps();
+ }
+ /**
+ * Protobuf type {@code policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector}
+ */
+ public static final class ValueSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector)
+ ValueSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ValueSelector.newBuilder() to construct.
+ private ValueSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ValueSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ValueSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.class, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder.class);
+ }
+
+ public static final int WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER = 1;
+ private boolean withKeyAccessGrants_ = false;
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_SUBJECT_MAPS_FIELD_NUMBER = 2;
+ private boolean withSubjectMaps_ = false;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+
+ public static final int WITH_RESOURCE_MAPS_FIELD_NUMBER = 3;
+ private boolean withResourceMaps_ = false;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ output.writeBool(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ output.writeBool(3, withResourceMaps_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, withResourceMaps_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector other = (io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (getWithSubjectMaps()
+ != other.getWithSubjectMaps()) return false;
+ if (getWithResourceMaps()
+ != other.getWithResourceMaps()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ hash = (37 * hash) + WITH_SUBJECT_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithSubjectMaps());
+ hash = (37 * hash) + WITH_RESOURCE_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithResourceMaps());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector 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(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector 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 policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withSubjectMaps_ ;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @param value The withSubjectMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithSubjectMaps(boolean value) {
+
+ withSubjectMaps_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithSubjectMaps() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withSubjectMaps_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withResourceMaps_ ;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @param value The withResourceMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithResourceMaps(boolean value) {
+
+ withResourceMaps_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithResourceMaps() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ withResourceMaps_ = false;
+ 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:policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector)
+ private static final io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_VALUES_FIELD_NUMBER = 10;
+ private io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector withValues_;
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithValues() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector getWithValues() {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder getWithValuesOrBuilder() {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(10, getWithValues());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getWithValues());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector other = (io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (hasWithValues() != other.hasWithValues()) return false;
+ if (hasWithValues()) {
+ if (!getWithValues()
+ .equals(other.getWithValues())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ if (hasWithValues()) {
+ hash = (37 * hash) + WITH_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getWithValues().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector 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(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector 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 policy.AttributeNamespaceSelector.AttributeSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector withValues_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder> withValuesBuilder_;
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return Whether the withValues field is set.
+ */
+ public boolean hasWithValues() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ * @return The withValues.
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector getWithValues() {
+ if (withValuesBuilder_ == null) {
+ return withValues_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.getDefaultInstance() : withValues_;
+ } else {
+ return withValuesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public Builder setWithValues(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector value) {
+ if (withValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withValues_ = value;
+ } else {
+ withValuesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public Builder setWithValues(
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder builderForValue) {
+ if (withValuesBuilder_ == null) {
+ withValues_ = builderForValue.build();
+ } else {
+ withValuesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public Builder mergeWithValues(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector value) {
+ if (withValuesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ withValues_ != null &&
+ withValues_ != io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.getDefaultInstance()) {
+ getWithValuesBuilder().mergeFrom(value);
+ } else {
+ withValues_ = value;
+ }
+ } else {
+ withValuesBuilder_.mergeFrom(value);
+ }
+ if (withValues_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public Builder clearWithValues() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withValues_ = null;
+ if (withValuesBuilder_ != null) {
+ withValuesBuilder_.dispose();
+ withValuesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder getWithValuesBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getWithValuesFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder getWithValuesOrBuilder() {
+ if (withValuesBuilder_ != null) {
+ return withValuesBuilder_.getMessageOrBuilder();
+ } else {
+ return withValues_ == null ?
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.getDefaultInstance() : withValues_;
+ }
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector with_values = 10 [json_name = "withValues"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder>
+ getWithValuesFieldBuilder() {
+ if (withValuesBuilder_ == null) {
+ withValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelector.Builder, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.ValueSelectorOrBuilder>(
+ getWithValues(),
+ getParentForChildren(),
+ isClean());
+ withValues_ = null;
+ }
+ return withValuesBuilder_;
+ }
+ @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:policy.AttributeNamespaceSelector.AttributeSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeNamespaceSelector.AttributeSelector)
+ private static final io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return Whether the withAttributes field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithAttributes() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return The withAttributes.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector getWithAttributes() {
+ return withAttributes_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.getDefaultInstance() : withAttributes_;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelectorOrBuilder getWithAttributesOrBuilder() {
+ return withAttributes_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.getDefaultInstance() : withAttributes_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(10, getWithAttributes());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getWithAttributes());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeNamespaceSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeNamespaceSelector other = (io.opentdf.platform.policy.AttributeNamespaceSelector) obj;
+
+ if (hasWithAttributes() != other.hasWithAttributes()) return false;
+ if (hasWithAttributes()) {
+ if (!getWithAttributes()
+ .equals(other.getWithAttributes())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasWithAttributes()) {
+ hash = (37 * hash) + WITH_ATTRIBUTES_FIELD_NUMBER;
+ hash = (53 * hash) + getWithAttributes().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector 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 io.opentdf.platform.policy.AttributeNamespaceSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector 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(io.opentdf.platform.policy.AttributeNamespaceSelector 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 policy.AttributeNamespaceSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return Whether the withAttributes field is set.
+ */
+ public boolean hasWithAttributes() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return The withAttributes.
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector getWithAttributes() {
+ if (withAttributesBuilder_ == null) {
+ return withAttributes_ == null ? io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.getDefaultInstance() : withAttributes_;
+ } else {
+ return withAttributesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public Builder setWithAttributes(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector value) {
+ if (withAttributesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withAttributes_ = value;
+ } else {
+ withAttributesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public Builder setWithAttributes(
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.Builder builderForValue) {
+ if (withAttributesBuilder_ == null) {
+ withAttributes_ = builderForValue.build();
+ } else {
+ withAttributesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public Builder mergeWithAttributes(io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector value) {
+ if (withAttributesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ withAttributes_ != null &&
+ withAttributes_ != io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.getDefaultInstance()) {
+ getWithAttributesBuilder().mergeFrom(value);
+ } else {
+ withAttributes_ = value;
+ }
+ } else {
+ withAttributesBuilder_.mergeFrom(value);
+ }
+ if (withAttributes_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public Builder clearWithAttributes() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withAttributes_ = null;
+ if (withAttributesBuilder_ != null) {
+ withAttributesBuilder_.dispose();
+ withAttributesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.Builder getWithAttributesBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getWithAttributesFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ public io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelectorOrBuilder getWithAttributesOrBuilder() {
+ if (withAttributesBuilder_ != null) {
+ return withAttributesBuilder_.getMessageOrBuilder();
+ } else {
+ return withAttributes_ == null ?
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.getDefaultInstance() : withAttributes_;
+ }
+ }
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.Builder, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelectorOrBuilder>
+ getWithAttributesFieldBuilder() {
+ if (withAttributesBuilder_ == null) {
+ withAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector.Builder, io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelectorOrBuilder>(
+ getWithAttributes(),
+ getParentForChildren(),
+ isClean());
+ withAttributes_ = null;
+ }
+ return withAttributesBuilder_;
+ }
+ @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:policy.AttributeNamespaceSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeNamespaceSelector)
+ private static final io.opentdf.platform.policy.AttributeNamespaceSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeNamespaceSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeNamespaceSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return Whether the withAttributes field is set.
+ */
+ boolean hasWithAttributes();
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ * @return The withAttributes.
+ */
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelector getWithAttributes();
+ /**
+ * .policy.AttributeNamespaceSelector.AttributeSelector with_attributes = 10 [json_name = "withAttributes"];
+ */
+ io.opentdf.platform.policy.AttributeNamespaceSelector.AttributeSelectorOrBuilder getWithAttributesOrBuilder();
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeOrBuilder.java
similarity index 71%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeOrBuilder.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/AttributeOrBuilder.java
index da94030..11eb357 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeOrBuilder.java
@@ -1,11 +1,11 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/attributes/attributes.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.attributes;
+package io.opentdf.platform.policy;
public interface AttributeOrBuilder extends
- // @@protoc_insertion_point(interface_extends:policy.attributes.Attribute)
+ // @@protoc_insertion_point(interface_extends:policy.Attribute)
com.google.protobuf.MessageOrBuilder {
/**
@@ -25,7 +25,7 @@ public interface AttributeOrBuilder extends
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return Whether the namespace field is set.
*/
boolean hasNamespace();
@@ -34,18 +34,18 @@ public interface AttributeOrBuilder extends
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
* @return The namespace.
*/
- io.opentdf.platform.policy.namespaces.Namespace getNamespace();
+ io.opentdf.platform.policy.Namespace getNamespace();
/**
*
* namespace of the attribute
*
*
- * .policy.namespaces.Namespace namespace = 2 [json_name = "namespace"];
+ * .policy.Namespace namespace = 2 [json_name = "namespace"];
*/
- io.opentdf.platform.policy.namespaces.NamespaceOrBuilder getNamespaceOrBuilder();
+ io.opentdf.platform.policy.NamespaceOrBuilder getNamespaceOrBuilder();
/**
*
@@ -72,7 +72,7 @@ public interface AttributeOrBuilder extends
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
int getRuleValue();
@@ -81,33 +81,33 @@ public interface AttributeOrBuilder extends
* attribute rule enum
*
*
- * .policy.attributes.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 4 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule();
+ io.opentdf.platform.policy.AttributeRuleTypeEnum getRule();
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- java.util.Listrepeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- io.opentdf.platform.policy.attributes.Value getValues(int index);
+ io.opentdf.platform.policy.Value getValues(int index);
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
int getValuesCount();
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- java.util.List extends io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ java.util.List extends io.opentdf.platform.policy.ValueOrBuilder>
getValuesOrBuilderList();
/**
- * repeated .policy.attributes.Value values = 5 [json_name = "values"];
+ * repeated .policy.Value values = 5 [json_name = "values"];
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getValuesOrBuilder(
+ io.opentdf.platform.policy.ValueOrBuilder getValuesOrBuilder(
int index);
/**
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeRuleTypeEnum.java b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeRuleTypeEnum.java
similarity index 92%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeRuleTypeEnum.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/AttributeRuleTypeEnum.java
index e3a86ac..51df5a9 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeRuleTypeEnum.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeRuleTypeEnum.java
@@ -1,15 +1,15 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/attributes/attributes.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.attributes;
+package io.opentdf.platform.policy;
/**
*
* buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
*
*
- * Protobuf enum {@code policy.attributes.AttributeRuleTypeEnum}
+ * Protobuf enum {@code policy.AttributeRuleTypeEnum}
*/
public enum AttributeRuleTypeEnum
implements com.google.protobuf.ProtocolMessageEnum {
@@ -108,7 +108,7 @@ public AttributeRuleTypeEnum findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return io.opentdf.platform.policy.attributes.AttributesProto.getDescriptor().getEnumTypes().get(0);
+ return io.opentdf.platform.policy.ObjectsProto.getDescriptor().getEnumTypes().get(0);
}
private static final AttributeRuleTypeEnum[] VALUES = values();
@@ -131,6 +131,6 @@ private AttributeRuleTypeEnum(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:policy.attributes.AttributeRuleTypeEnum)
+ // @@protoc_insertion_point(enum_scope:policy.AttributeRuleTypeEnum)
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeValueSelector.java b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeValueSelector.java
new file mode 100644
index 0000000..ab6c568
--- /dev/null
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/AttributeValueSelector.java
@@ -0,0 +1,1882 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: policy/selectors.proto
+
+// Protobuf Java Version: 3.25.3
+package io.opentdf.platform.policy;
+
+/**
+ * Protobuf type {@code policy.AttributeValueSelector}
+ */
+public final class AttributeValueSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeValueSelector)
+ AttributeValueSelectorOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use AttributeValueSelector.newBuilder() to construct.
+ private AttributeValueSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AttributeValueSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AttributeValueSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeValueSelector.class, io.opentdf.platform.policy.AttributeValueSelector.Builder.class);
+ }
+
+ public interface AttributeSelectorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:policy.AttributeValueSelector.AttributeSelector)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ boolean hasWithNamespace();
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector getWithNamespace();
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder();
+ }
+ /**
+ * Protobuf type {@code policy.AttributeValueSelector.AttributeSelector}
+ */
+ public static final class AttributeSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeValueSelector.AttributeSelector)
+ AttributeSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AttributeSelector.newBuilder() to construct.
+ private AttributeSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AttributeSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AttributeSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_AttributeSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_AttributeSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.class, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder.class);
+ }
+
+ public interface NamespaceSelectorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:policy.AttributeValueSelector.AttributeSelector.NamespaceSelector)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code policy.AttributeValueSelector.AttributeSelector.NamespaceSelector}
+ */
+ public static final class NamespaceSelector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.AttributeValueSelector.AttributeSelector.NamespaceSelector)
+ NamespaceSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NamespaceSelector.newBuilder() to construct.
+ private NamespaceSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NamespaceSelector() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NamespaceSelector();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.SelectorsProto.internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.class, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector other = (io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector 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 io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector 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 io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector 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(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector 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 policy.AttributeValueSelector.AttributeSelector.NamespaceSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_NAMESPACE_FIELD_NUMBER = 10;
+ private io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector withNamespace_;
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithNamespace() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector getWithNamespace() {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder() {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(10, getWithNamespace());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getWithNamespace());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector other = (io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (hasWithNamespace() != other.hasWithNamespace()) return false;
+ if (hasWithNamespace()) {
+ if (!getWithNamespace()
+ .equals(other.getWithNamespace())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ if (hasWithNamespace()) {
+ hash = (37 * hash) + WITH_NAMESPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getWithNamespace().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector 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 io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector 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 io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector 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(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector 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 policy.AttributeValueSelector.AttributeSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector withNamespace_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder> withNamespaceBuilder_;
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return Whether the withNamespace field is set.
+ */
+ public boolean hasWithNamespace() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ * @return The withNamespace.
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector getWithNamespace() {
+ if (withNamespaceBuilder_ == null) {
+ return withNamespace_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ } else {
+ return withNamespaceBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder setWithNamespace(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector value) {
+ if (withNamespaceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withNamespace_ = value;
+ } else {
+ withNamespaceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder setWithNamespace(
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder builderForValue) {
+ if (withNamespaceBuilder_ == null) {
+ withNamespace_ = builderForValue.build();
+ } else {
+ withNamespaceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder mergeWithNamespace(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector value) {
+ if (withNamespaceBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ withNamespace_ != null &&
+ withNamespace_ != io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.getDefaultInstance()) {
+ getWithNamespaceBuilder().mergeFrom(value);
+ } else {
+ withNamespace_ = value;
+ }
+ } else {
+ withNamespaceBuilder_.mergeFrom(value);
+ }
+ if (withNamespace_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public Builder clearWithNamespace() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withNamespace_ = null;
+ if (withNamespaceBuilder_ != null) {
+ withNamespaceBuilder_.dispose();
+ withNamespaceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder getWithNamespaceBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getWithNamespaceFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder getWithNamespaceOrBuilder() {
+ if (withNamespaceBuilder_ != null) {
+ return withNamespaceBuilder_.getMessageOrBuilder();
+ } else {
+ return withNamespace_ == null ?
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.getDefaultInstance() : withNamespace_;
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector.NamespaceSelector with_namespace = 10 [json_name = "withNamespace"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder>
+ getWithNamespaceFieldBuilder() {
+ if (withNamespaceBuilder_ == null) {
+ withNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.NamespaceSelectorOrBuilder>(
+ getWithNamespace(),
+ getParentForChildren(),
+ isClean());
+ withNamespace_ = null;
+ }
+ return withNamespaceBuilder_;
+ }
+ @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:policy.AttributeValueSelector.AttributeSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeValueSelector.AttributeSelector)
+ private static final io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+
+ public static final int WITH_SUBJECT_MAPS_FIELD_NUMBER = 2;
+ private boolean withSubjectMaps_ = false;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+
+ public static final int WITH_RESOURCE_MAPS_FIELD_NUMBER = 3;
+ private boolean withResourceMaps_ = false;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+
+ public static final int WITH_ATTRIBUTE_FIELD_NUMBER = 10;
+ private io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector withAttribute_;
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return Whether the withAttribute field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithAttribute() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return The withAttribute.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector getWithAttribute() {
+ return withAttribute_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.getDefaultInstance() : withAttribute_;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder getWithAttributeOrBuilder() {
+ return withAttribute_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.getDefaultInstance() : withAttribute_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (withKeyAccessGrants_ != false) {
+ output.writeBool(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ output.writeBool(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ output.writeBool(3, withResourceMaps_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(10, getWithAttribute());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (withKeyAccessGrants_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, withKeyAccessGrants_);
+ }
+ if (withSubjectMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, withSubjectMaps_);
+ }
+ if (withResourceMaps_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, withResourceMaps_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getWithAttribute());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.AttributeValueSelector)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.AttributeValueSelector other = (io.opentdf.platform.policy.AttributeValueSelector) obj;
+
+ if (getWithKeyAccessGrants()
+ != other.getWithKeyAccessGrants()) return false;
+ if (getWithSubjectMaps()
+ != other.getWithSubjectMaps()) return false;
+ if (getWithResourceMaps()
+ != other.getWithResourceMaps()) return false;
+ if (hasWithAttribute() != other.hasWithAttribute()) return false;
+ if (hasWithAttribute()) {
+ if (!getWithAttribute()
+ .equals(other.getWithAttribute())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithKeyAccessGrants());
+ hash = (37 * hash) + WITH_SUBJECT_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithSubjectMaps());
+ hash = (37 * hash) + WITH_RESOURCE_MAPS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWithResourceMaps());
+ if (hasWithAttribute()) {
+ hash = (37 * hash) + WITH_ATTRIBUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getWithAttribute().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector 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 io.opentdf.platform.policy.AttributeValueSelector parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector 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 io.opentdf.platform.policy.AttributeValueSelector parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.AttributeValueSelector 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(io.opentdf.platform.policy.AttributeValueSelector 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 policy.AttributeValueSelector}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ @java.lang.Override
+ public boolean getWithKeyAccessGrants() {
+ return withKeyAccessGrants_;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @param value The withKeyAccessGrants to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithKeyAccessGrants(boolean value) {
+
+ withKeyAccessGrants_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithKeyAccessGrants() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ withKeyAccessGrants_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withSubjectMaps_ ;
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ @java.lang.Override
+ public boolean getWithSubjectMaps() {
+ return withSubjectMaps_;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @param value The withSubjectMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithSubjectMaps(boolean value) {
+
+ withSubjectMaps_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithSubjectMaps() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withSubjectMaps_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withResourceMaps_ ;
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ @java.lang.Override
+ public boolean getWithResourceMaps() {
+ return withResourceMaps_;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @param value The withResourceMaps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWithResourceMaps(boolean value) {
+
+ withResourceMaps_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return This builder for chaining.
+ */
+ public Builder clearWithResourceMaps() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ withResourceMaps_ = false;
+ onChanged();
+ return this;
+ }
+
+ private io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector withAttribute_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder> withAttributeBuilder_;
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return Whether the withAttribute field is set.
+ */
+ public boolean hasWithAttribute() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return The withAttribute.
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector getWithAttribute() {
+ if (withAttributeBuilder_ == null) {
+ return withAttribute_ == null ? io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.getDefaultInstance() : withAttribute_;
+ } else {
+ return withAttributeBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public Builder setWithAttribute(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector value) {
+ if (withAttributeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withAttribute_ = value;
+ } else {
+ withAttributeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public Builder setWithAttribute(
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder builderForValue) {
+ if (withAttributeBuilder_ == null) {
+ withAttribute_ = builderForValue.build();
+ } else {
+ withAttributeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public Builder mergeWithAttribute(io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector value) {
+ if (withAttributeBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ withAttribute_ != null &&
+ withAttribute_ != io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.getDefaultInstance()) {
+ getWithAttributeBuilder().mergeFrom(value);
+ } else {
+ withAttribute_ = value;
+ }
+ } else {
+ withAttributeBuilder_.mergeFrom(value);
+ }
+ if (withAttribute_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public Builder clearWithAttribute() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ withAttribute_ = null;
+ if (withAttributeBuilder_ != null) {
+ withAttributeBuilder_.dispose();
+ withAttributeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder getWithAttributeBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getWithAttributeFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder getWithAttributeOrBuilder() {
+ if (withAttributeBuilder_ != null) {
+ return withAttributeBuilder_.getMessageOrBuilder();
+ } else {
+ return withAttribute_ == null ?
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.getDefaultInstance() : withAttribute_;
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder>
+ getWithAttributeFieldBuilder() {
+ if (withAttributeBuilder_ == null) {
+ withAttributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector.Builder, io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder>(
+ getWithAttribute(),
+ getParentForChildren(),
+ isClean());
+ withAttribute_ = null;
+ }
+ return withAttributeBuilder_;
+ }
+ @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:policy.AttributeValueSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.AttributeValueSelector)
+ private static final io.opentdf.platform.policy.AttributeValueSelector DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.AttributeValueSelector();
+ }
+
+ public static io.opentdf.platform.policy.AttributeValueSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool with_key_access_grants = 1 [json_name = "withKeyAccessGrants"];
+ * @return The withKeyAccessGrants.
+ */
+ boolean getWithKeyAccessGrants();
+
+ /**
+ * bool with_subject_maps = 2 [json_name = "withSubjectMaps"];
+ * @return The withSubjectMaps.
+ */
+ boolean getWithSubjectMaps();
+
+ /**
+ * bool with_resource_maps = 3 [json_name = "withResourceMaps"];
+ * @return The withResourceMaps.
+ */
+ boolean getWithResourceMaps();
+
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return Whether the withAttribute field is set.
+ */
+ boolean hasWithAttribute();
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ * @return The withAttribute.
+ */
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelector getWithAttribute();
+ /**
+ * .policy.AttributeValueSelector.AttributeSelector with_attribute = 10 [json_name = "withAttribute"];
+ */
+ io.opentdf.platform.policy.AttributeValueSelector.AttributeSelectorOrBuilder getWithAttributeOrBuilder();
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/Condition.java b/sdkjava/src/main/java/io/opentdf/platform/policy/Condition.java
similarity index 81%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/Condition.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/Condition.java
index ab3df2a..52253e3 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/Condition.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/Condition.java
@@ -1,8 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
/**
*
@@ -24,11 +24,11 @@
*}
*
*
- * Protobuf type {@code policy.subjectmapping.Condition}
+ * Protobuf type {@code policy.Condition}
*/
public final class Condition extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.Condition)
+ // @@protoc_insertion_point(message_implements:policy.Condition)
ConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Condition.newBuilder() to construct.
@@ -51,15 +51,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_Condition_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Condition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_Condition_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.Condition.class, io.opentdf.platform.policy.subjectmapping.Condition.Builder.class);
+ io.opentdf.platform.policy.Condition.class, io.opentdf.platform.policy.Condition.Builder.class);
}
public static final int SUBJECT_EXTERNAL_FIELD_FIELD_NUMBER = 1;
@@ -116,7 +116,7 @@ public java.lang.String getSubjectExternalField() {
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
@@ -127,12 +127,12 @@ public java.lang.String getSubjectExternalField() {
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The operator.
*/
- @java.lang.Override public io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum getOperator() {
- io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum result = io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.forNumber(operator_);
- return result == null ? io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.UNRECOGNIZED : result;
+ @java.lang.Override public io.opentdf.platform.policy.SubjectMappingOperatorEnum getOperator() {
+ io.opentdf.platform.policy.SubjectMappingOperatorEnum result = io.opentdf.platform.policy.SubjectMappingOperatorEnum.forNumber(operator_);
+ return result == null ? io.opentdf.platform.policy.SubjectMappingOperatorEnum.UNRECOGNIZED : result;
}
public static final int SUBJECT_EXTERNAL_VALUES_FIELD_NUMBER = 3;
@@ -205,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectExternalField_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subjectExternalField_);
}
- if (operator_ != io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED.getNumber()) {
+ if (operator_ != io.opentdf.platform.policy.SubjectMappingOperatorEnum.SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED.getNumber()) {
output.writeEnum(2, operator_);
}
for (int i = 0; i < subjectExternalValues_.size(); i++) {
@@ -223,7 +223,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectExternalField_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subjectExternalField_);
}
- if (operator_ != io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED.getNumber()) {
+ if (operator_ != io.opentdf.platform.policy.SubjectMappingOperatorEnum.SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, operator_);
}
@@ -245,10 +245,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.Condition)) {
+ if (!(obj instanceof io.opentdf.platform.policy.Condition)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.Condition other = (io.opentdf.platform.policy.subjectmapping.Condition) obj;
+ io.opentdf.platform.policy.Condition other = (io.opentdf.platform.policy.Condition) obj;
if (!getSubjectExternalField()
.equals(other.getSubjectExternalField())) return false;
@@ -279,44 +279,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.Condition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Condition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -324,26 +324,26 @@ public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Condition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseDelimitedFrom(
+ public static io.opentdf.platform.policy.Condition 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 io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
+ public static io.opentdf.platform.policy.Condition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -356,7 +356,7 @@ public static io.opentdf.platform.policy.subjectmapping.Condition parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.Condition prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.Condition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -391,26 +391,26 @@ protected Builder newBuilderForType(
*}
*
*
- * Protobuf type {@code policy.subjectmapping.Condition}
+ * Protobuf type {@code policy.Condition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
@@ -703,7 +703,7 @@ public Builder setSubjectExternalFieldBytes(
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @param value The enum numeric value on the wire for operator to set.
* @return This builder for chaining.
*/
@@ -718,24 +718,24 @@ public Builder setOperatorValue(int value) {
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The operator.
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum getOperator() {
- io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum result = io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.forNumber(operator_);
- return result == null ? io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum.UNRECOGNIZED : result;
+ public io.opentdf.platform.policy.SubjectMappingOperatorEnum getOperator() {
+ io.opentdf.platform.policy.SubjectMappingOperatorEnum result = io.opentdf.platform.policy.SubjectMappingOperatorEnum.forNumber(operator_);
+ return result == null ? io.opentdf.platform.policy.SubjectMappingOperatorEnum.UNRECOGNIZED : result;
}
/**
*
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @param value The operator to set.
* @return This builder for chaining.
*/
- public Builder setOperator(io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum value) {
+ public Builder setOperator(io.opentdf.platform.policy.SubjectMappingOperatorEnum value) {
if (value == null) {
throw new NullPointerException();
}
@@ -749,7 +749,7 @@ public Builder setOperator(io.opentdf.platform.policy.subjectmapping.SubjectMapp
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearOperator() {
@@ -918,16 +918,16 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:policy.subjectmapping.Condition)
+ // @@protoc_insertion_point(builder_scope:policy.Condition)
}
- // @@protoc_insertion_point(class_scope:policy.subjectmapping.Condition)
- private static final io.opentdf.platform.policy.subjectmapping.Condition DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.Condition)
+ private static final io.opentdf.platform.policy.Condition DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.subjectmapping.Condition();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.Condition();
}
- public static io.opentdf.platform.policy.subjectmapping.Condition getDefaultInstance() {
+ public static io.opentdf.platform.policy.Condition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@@ -963,7 +963,7 @@ public com.google.protobuf.Parser
* buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
*
*
- * Protobuf enum {@code policy.subjectmapping.ConditionBooleanTypeEnum}
+ * Protobuf enum {@code policy.ConditionBooleanTypeEnum}
*/
public enum ConditionBooleanTypeEnum
implements com.google.protobuf.ProtocolMessageEnum {
@@ -99,7 +99,7 @@ public ConditionBooleanTypeEnum findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.getDescriptor().getEnumTypes().get(1);
+ return io.opentdf.platform.policy.ObjectsProto.getDescriptor().getEnumTypes().get(2);
}
private static final ConditionBooleanTypeEnum[] VALUES = values();
@@ -122,6 +122,6 @@ private ConditionBooleanTypeEnum(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:policy.subjectmapping.ConditionBooleanTypeEnum)
+ // @@protoc_insertion_point(enum_scope:policy.ConditionBooleanTypeEnum)
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionGroup.java b/sdkjava/src/main/java/io/opentdf/platform/policy/ConditionGroup.java
similarity index 62%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionGroup.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/ConditionGroup.java
index 193f0e5..22510d3 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionGroup.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/ConditionGroup.java
@@ -1,19 +1,19 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
/**
*
* A collection of Conditions evaluated by the boolean_operator provided
*
*
- * Protobuf type {@code policy.subjectmapping.ConditionGroup}
+ * Protobuf type {@code policy.ConditionGroup}
*/
public final class ConditionGroup extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.ConditionGroup)
+ // @@protoc_insertion_point(message_implements:policy.ConditionGroup)
ConditionGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConditionGroup.newBuilder() to construct.
@@ -34,54 +34,54 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_ConditionGroup_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_ConditionGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_ConditionGroup_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_ConditionGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.ConditionGroup.class, io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder.class);
+ io.opentdf.platform.policy.ConditionGroup.class, io.opentdf.platform.policy.ConditionGroup.Builder.class);
}
public static final int CONDITIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private java.util.Listrepeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.Listrepeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ConditionOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
@java.lang.Override
public int getConditionsCount() {
return conditions_.size();
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.Condition getConditions(int index) {
+ public io.opentdf.platform.policy.Condition getConditions(int index) {
return conditions_.get(index);
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getConditionsOrBuilder(
+ public io.opentdf.platform.policy.ConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
@@ -93,7 +93,7 @@ public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getCondition
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for booleanOperator.
*/
@java.lang.Override public int getBooleanOperatorValue() {
@@ -104,12 +104,12 @@ public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getCondition
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @return The booleanOperator.
*/
- @java.lang.Override public io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum getBooleanOperator() {
- io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum result = io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.forNumber(booleanOperator_);
- return result == null ? io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.UNRECOGNIZED : result;
+ @java.lang.Override public io.opentdf.platform.policy.ConditionBooleanTypeEnum getBooleanOperator() {
+ io.opentdf.platform.policy.ConditionBooleanTypeEnum result = io.opentdf.platform.policy.ConditionBooleanTypeEnum.forNumber(booleanOperator_);
+ return result == null ? io.opentdf.platform.policy.ConditionBooleanTypeEnum.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@@ -129,7 +129,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(1, conditions_.get(i));
}
- if (booleanOperator_ != io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (booleanOperator_ != io.opentdf.platform.policy.ConditionBooleanTypeEnum.CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED.getNumber()) {
output.writeEnum(2, booleanOperator_);
}
getUnknownFields().writeTo(output);
@@ -145,7 +145,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, conditions_.get(i));
}
- if (booleanOperator_ != io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (booleanOperator_ != io.opentdf.platform.policy.ConditionBooleanTypeEnum.CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, booleanOperator_);
}
@@ -159,10 +159,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.ConditionGroup)) {
+ if (!(obj instanceof io.opentdf.platform.policy.ConditionGroup)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.ConditionGroup other = (io.opentdf.platform.policy.subjectmapping.ConditionGroup) obj;
+ io.opentdf.platform.policy.ConditionGroup other = (io.opentdf.platform.policy.ConditionGroup) obj;
if (!getConditionsList()
.equals(other.getConditionsList())) return false;
@@ -189,44 +189,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -234,26 +234,26 @@ public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.ConditionGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseDelimitedFrom(
+ public static io.opentdf.platform.policy.ConditionGroup 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 io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom(
+ public static io.opentdf.platform.policy.ConditionGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -266,7 +266,7 @@ public static io.opentdf.platform.policy.subjectmapping.ConditionGroup parseFrom
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.ConditionGroup prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.ConditionGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -286,26 +286,26 @@ protected Builder newBuilderForType(
* A collection of Conditions evaluated by the boolean_operator provided
*
*
- * Protobuf type {@code policy.subjectmapping.ConditionGroup}
+ * Protobuf type {@code policy.ConditionGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public java.util.Listrepeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
@@ -545,9 +545,9 @@ public int getConditionsCount() {
}
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.Condition getConditions(int index) {
+ public io.opentdf.platform.policy.Condition getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
@@ -555,10 +555,10 @@ public io.opentdf.platform.policy.subjectmapping.Condition getConditions(int ind
}
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder setConditions(
- int index, io.opentdf.platform.policy.subjectmapping.Condition value) {
+ int index, io.opentdf.platform.policy.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -572,10 +572,10 @@ public Builder setConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder setConditions(
- int index, io.opentdf.platform.policy.subjectmapping.Condition.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
@@ -586,9 +586,9 @@ public Builder setConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public Builder addConditions(io.opentdf.platform.policy.subjectmapping.Condition value) {
+ public Builder addConditions(io.opentdf.platform.policy.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -602,10 +602,10 @@ public Builder addConditions(io.opentdf.platform.policy.subjectmapping.Condition
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder addConditions(
- int index, io.opentdf.platform.policy.subjectmapping.Condition value) {
+ int index, io.opentdf.platform.policy.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -619,10 +619,10 @@ public Builder addConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder addConditions(
- io.opentdf.platform.policy.subjectmapping.Condition.Builder builderForValue) {
+ io.opentdf.platform.policy.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
@@ -633,10 +633,10 @@ public Builder addConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder addConditions(
- int index, io.opentdf.platform.policy.subjectmapping.Condition.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
@@ -647,10 +647,10 @@ public Builder addConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder addAllConditions(
- java.lang.Iterable extends io.opentdf.platform.policy.subjectmapping.Condition> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.Condition> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -662,7 +662,7 @@ public Builder addAllConditions(
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
@@ -675,7 +675,7 @@ public Builder clearConditions() {
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
@@ -688,16 +688,16 @@ public Builder removeConditions(int index) {
return this;
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.Condition.Builder getConditionsBuilder(
+ public io.opentdf.platform.policy.Condition.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getConditionsOrBuilder(
+ public io.opentdf.platform.policy.ConditionOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
@@ -705,9 +705,9 @@ public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getCondition
}
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ConditionOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
@@ -716,33 +716,33 @@ public io.opentdf.platform.policy.subjectmapping.ConditionOrBuilder getCondition
}
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.Condition.Builder addConditionsBuilder() {
+ public io.opentdf.platform.policy.Condition.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
- io.opentdf.platform.policy.subjectmapping.Condition.getDefaultInstance());
+ io.opentdf.platform.policy.Condition.getDefaultInstance());
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.Condition.Builder addConditionsBuilder(
+ public io.opentdf.platform.policy.Condition.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
- index, io.opentdf.platform.policy.subjectmapping.Condition.getDefaultInstance());
+ index, io.opentdf.platform.policy.Condition.getDefaultInstance());
}
/**
- * repeated .policy.subjectmapping.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
*/
- public java.util.List.policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for booleanOperator.
*/
@java.lang.Override public int getBooleanOperatorValue() {
@@ -769,7 +769,7 @@ public io.opentdf.platform.policy.subjectmapping.Condition.Builder addConditions
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @param value The enum numeric value on the wire for booleanOperator to set.
* @return This builder for chaining.
*/
@@ -784,24 +784,24 @@ public Builder setBooleanOperatorValue(int value) {
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @return The booleanOperator.
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum getBooleanOperator() {
- io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum result = io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.forNumber(booleanOperator_);
- return result == null ? io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum.UNRECOGNIZED : result;
+ public io.opentdf.platform.policy.ConditionBooleanTypeEnum getBooleanOperator() {
+ io.opentdf.platform.policy.ConditionBooleanTypeEnum result = io.opentdf.platform.policy.ConditionBooleanTypeEnum.forNumber(booleanOperator_);
+ return result == null ? io.opentdf.platform.policy.ConditionBooleanTypeEnum.UNRECOGNIZED : result;
}
/**
*
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @param value The booleanOperator to set.
* @return This builder for chaining.
*/
- public Builder setBooleanOperator(io.opentdf.platform.policy.subjectmapping.ConditionBooleanTypeEnum value) {
+ public Builder setBooleanOperator(io.opentdf.platform.policy.ConditionBooleanTypeEnum value) {
if (value == null) {
throw new NullPointerException();
}
@@ -815,7 +815,7 @@ public Builder setBooleanOperator(io.opentdf.platform.policy.subjectmapping.Cond
* the boolean evaluation type across the conditions
*
*
- * .policy.subjectmapping.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearBooleanOperator() {
@@ -837,16 +837,16 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:policy.subjectmapping.ConditionGroup)
+ // @@protoc_insertion_point(builder_scope:policy.ConditionGroup)
}
- // @@protoc_insertion_point(class_scope:policy.subjectmapping.ConditionGroup)
- private static final io.opentdf.platform.policy.subjectmapping.ConditionGroup DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.ConditionGroup)
+ private static final io.opentdf.platform.policy.ConditionGroup DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.subjectmapping.ConditionGroup();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.ConditionGroup();
}
- public static io.opentdf.platform.policy.subjectmapping.ConditionGroup getDefaultInstance() {
+ public static io.opentdf.platform.policy.ConditionGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@@ -882,7 +882,7 @@ public com.google.protobuf.Parserrepeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ */
+ java.util.Listrepeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.Condition getConditions(int index);
+ /**
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ */
+ int getConditionsCount();
+ /**
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends io.opentdf.platform.policy.ConditionOrBuilder>
+ getConditionsOrBuilderList();
+ /**
+ * repeated .policy.Condition conditions = 1 [json_name = "conditions", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.ConditionOrBuilder getConditionsOrBuilder(
+ int index);
+
+ /**
+ *
+ * the boolean evaluation type across the conditions
+ *
+ *
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * @return The enum numeric value on the wire for booleanOperator.
+ */
+ int getBooleanOperatorValue();
+ /**
+ *
+ * the boolean evaluation type across the conditions
+ *
+ *
+ * .policy.ConditionBooleanTypeEnum boolean_operator = 2 [json_name = "booleanOperator", (.buf.validate.field) = { ... }
+ * @return The booleanOperator.
+ */
+ io.opentdf.platform.policy.ConditionBooleanTypeEnum getBooleanOperator();
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/ConditionOrBuilder.java
similarity index 82%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionOrBuilder.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/ConditionOrBuilder.java
index a44dc99..1a5d693 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/ConditionOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/ConditionOrBuilder.java
@@ -1,11 +1,11 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
public interface ConditionOrBuilder extends
- // @@protoc_insertion_point(interface_extends:policy.subjectmapping.Condition)
+ // @@protoc_insertion_point(interface_extends:policy.Condition)
com.google.protobuf.MessageOrBuilder {
/**
@@ -33,7 +33,7 @@ public interface ConditionOrBuilder extends
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for operator.
*/
int getOperatorValue();
@@ -42,10 +42,10 @@ public interface ConditionOrBuilder extends
* the evaluation operator of relation
*
*
- * .policy.subjectmapping.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
+ * .policy.SubjectMappingOperatorEnum operator = 2 [json_name = "operator", (.buf.validate.field) = { ... }
* @return The operator.
*/
- io.opentdf.platform.policy.subjectmapping.SubjectMappingOperatorEnum getOperator();
+ io.opentdf.platform.policy.SubjectMappingOperatorEnum getOperator();
/**
*
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/namespaces/Namespace.java b/sdkjava/src/main/java/io/opentdf/platform/policy/Namespace.java
similarity index 90%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/namespaces/Namespace.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/Namespace.java
index 17c796e..0521586 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/namespaces/Namespace.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/Namespace.java
@@ -1,15 +1,15 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/namespaces/namespaces.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.namespaces;
+package io.opentdf.platform.policy;
/**
- * Protobuf type {@code policy.namespaces.Namespace}
+ * Protobuf type {@code policy.Namespace}
*/
public final class Namespace extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.namespaces.Namespace)
+ // @@protoc_insertion_point(message_implements:policy.Namespace)
NamespaceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Namespace.newBuilder() to construct.
@@ -31,15 +31,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.namespaces.NamespacesProto.internal_static_policy_namespaces_Namespace_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Namespace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.namespaces.NamespacesProto.internal_static_policy_namespaces_Namespace_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Namespace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.namespaces.Namespace.class, io.opentdf.platform.policy.namespaces.Namespace.Builder.class);
+ io.opentdf.platform.policy.Namespace.class, io.opentdf.platform.policy.Namespace.Builder.class);
}
private int bitField0_;
@@ -305,10 +305,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.namespaces.Namespace)) {
+ if (!(obj instanceof io.opentdf.platform.policy.Namespace)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.namespaces.Namespace other = (io.opentdf.platform.policy.namespaces.Namespace) obj;
+ io.opentdf.platform.policy.Namespace other = (io.opentdf.platform.policy.Namespace) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -356,44 +356,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.Namespace parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Namespace parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -401,26 +401,26 @@ public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Namespace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseDelimitedFrom(
+ public static io.opentdf.platform.policy.Namespace 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 io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
+ public static io.opentdf.platform.policy.Namespace parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -433,7 +433,7 @@ public static io.opentdf.platform.policy.namespaces.Namespace parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.namespaces.Namespace prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.Namespace prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -449,26 +449,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code policy.namespaces.Namespace}
+ * Protobuf type {@code policy.Namespace}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
*
- *
*
- *# Resource Mappings (aka Access Control Resource Encodings aka ACRE): Structures supporting Resources and Attributes mappings
- *
- *## Examples
- *
- *### Where
- *
- *attributeId is an id of the following attribute
- *
- *FQN: http://demo.com/attr/Classification/value/Confidential
- *UUID: 12345678-1234-1234-1234-123456789012
- *
- *### Request
- *
- *grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping <<EOM
- *{
- *"mapping": {
- *"name": "Classification",
- *"attribute_value_id": "12345678-1234-1234-1234-123456789012",
- *"terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"]
- *}
- *}
- *EOM
- *
- *### Response
- *
- *{
- *"mapping": {
- *"metadata": {
- *"id": "12345678-1234-1234-1234-123456789012",
- *"created_at": "2020-01-01T00:00:00Z",
- *"updated_at": "2020-01-01T00:00:00Z"
- *},
- *"name": "Classification",
- *"attribute_value_id": "12345678-1234-1234-1234-123456789012",
- *"terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"]
- *}
- *}
+ *Resource Mappings (aka Access Control Resource Encodings aka ACRE) are structures supporting the mapping of Resources and Attribute Values
*
*
- * Protobuf type {@code policy.resourcemapping.ResourceMapping}
+ * Protobuf type {@code policy.ResourceMapping}
*/
public final class ResourceMapping extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.resourcemapping.ResourceMapping)
+ // @@protoc_insertion_point(message_implements:policy.ResourceMapping)
ResourceMappingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceMapping.newBuilder() to construct.
@@ -72,15 +36,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.resourcemapping.ResourceMappingProto.internal_static_policy_resourcemapping_ResourceMapping_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_ResourceMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.resourcemapping.ResourceMappingProto.internal_static_policy_resourcemapping_ResourceMapping_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_ResourceMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.resourcemapping.ResourceMapping.class, io.opentdf.platform.policy.resourcemapping.ResourceMapping.Builder.class);
+ io.opentdf.platform.policy.ResourceMapping.class, io.opentdf.platform.policy.ResourceMapping.Builder.class);
}
private int bitField0_;
@@ -150,9 +114,9 @@ public io.opentdf.platform.common.MetadataOrBuilder getMetadataOrBuilder() {
}
public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 3;
- private io.opentdf.platform.policy.attributes.Value attributeValue_;
+ private io.opentdf.platform.policy.Value attributeValue_;
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return Whether the attributeValue field is set.
*/
@java.lang.Override
@@ -160,19 +124,19 @@ public boolean hasAttributeValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return The attributeValue.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getAttributeValue() {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ public io.opentdf.platform.policy.Value getAttributeValue() {
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder() {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ public io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder() {
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
public static final int TERMS_FIELD_NUMBER = 4;
@@ -276,10 +240,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.resourcemapping.ResourceMapping)) {
+ if (!(obj instanceof io.opentdf.platform.policy.ResourceMapping)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.resourcemapping.ResourceMapping other = (io.opentdf.platform.policy.resourcemapping.ResourceMapping) obj;
+ io.opentdf.platform.policy.ResourceMapping other = (io.opentdf.platform.policy.ResourceMapping) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -325,44 +289,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -370,26 +334,26 @@ public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFr
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.ResourceMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseDelimitedFrom(
+ public static io.opentdf.platform.policy.ResourceMapping 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 io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFrom(
+ public static io.opentdf.platform.policy.ResourceMapping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -402,7 +366,7 @@ public static io.opentdf.platform.policy.resourcemapping.ResourceMapping parseFr
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.resourcemapping.ResourceMapping prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.ResourceMapping prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -420,65 +384,29 @@ protected Builder newBuilderForType(
/**
*
*
- *# Resource Mappings (aka Access Control Resource Encodings aka ACRE): Structures supporting Resources and Attributes mappings
- *
- *## Examples
- *
- *### Where
- *
- *attributeId is an id of the following attribute
- *
- *FQN: http://demo.com/attr/Classification/value/Confidential
- *UUID: 12345678-1234-1234-1234-123456789012
- *
- *### Request
- *
- *grpcurl -plaintext -d @ localhost:9000 policy.resourcemapping.ResourceMappingService/CreateResourceMapping <<EOM
- *{
- *"mapping": {
- *"name": "Classification",
- *"attribute_value_id": "12345678-1234-1234-1234-123456789012",
- *"terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"]
- *}
- *}
- *EOM
- *
- *### Response
- *
- *{
- *"mapping": {
- *"metadata": {
- *"id": "12345678-1234-1234-1234-123456789012",
- *"created_at": "2020-01-01T00:00:00Z",
- *"updated_at": "2020-01-01T00:00:00Z"
- *},
- *"name": "Classification",
- *"attribute_value_id": "12345678-1234-1234-1234-123456789012",
- *"terms": ["CONFIDENTIAL", "CONTROLLED UNCLASSIFIED", "OFFICIAL-SENSITIVE", "CUI", "C"]
- *}
- *}
+ *Resource Mappings (aka Access Control Resource Encodings aka ACRE) are structures supporting the mapping of Resources and Attribute Values
*
*
- * Protobuf type {@code policy.resourcemapping.ResourceMapping}
+ * Protobuf type {@code policy.ResourceMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return Whether the attributeValue field is set.
*/
public boolean hasAttributeValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return The attributeValue.
*/
- public io.opentdf.platform.policy.attributes.Value getAttributeValue() {
+ public io.opentdf.platform.policy.Value getAttributeValue() {
if (attributeValueBuilder_ == null) {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
} else {
return attributeValueBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
- public Builder setAttributeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder setAttributeValue(io.opentdf.platform.policy.Value value) {
if (attributeValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -932,10 +860,10 @@ public Builder setAttributeValue(io.opentdf.platform.policy.attributes.Value val
return this;
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
public Builder setAttributeValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (attributeValueBuilder_ == null) {
attributeValue_ = builderForValue.build();
} else {
@@ -946,13 +874,13 @@ public Builder setAttributeValue(
return this;
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
- public Builder mergeAttributeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder mergeAttributeValue(io.opentdf.platform.policy.Value value) {
if (attributeValueBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
attributeValue_ != null &&
- attributeValue_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
+ attributeValue_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
getAttributeValueBuilder().mergeFrom(value);
} else {
attributeValue_ = value;
@@ -967,7 +895,7 @@ public Builder mergeAttributeValue(io.opentdf.platform.policy.attributes.Value v
return this;
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
public Builder clearAttributeValue() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -980,33 +908,33 @@ public Builder clearAttributeValue() {
return this;
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getAttributeValueBuilder() {
+ public io.opentdf.platform.policy.Value.Builder getAttributeValueBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAttributeValueFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder() {
+ public io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder() {
if (attributeValueBuilder_ != null) {
return attributeValueBuilder_.getMessageOrBuilder();
} else {
return attributeValue_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
}
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
getAttributeValueFieldBuilder() {
if (attributeValueBuilder_ == null) {
attributeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
getAttributeValue(),
getParentForChildren(),
isClean());
@@ -1138,16 +1066,16 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:policy.resourcemapping.ResourceMapping)
+ // @@protoc_insertion_point(builder_scope:policy.ResourceMapping)
}
- // @@protoc_insertion_point(class_scope:policy.resourcemapping.ResourceMapping)
- private static final io.opentdf.platform.policy.resourcemapping.ResourceMapping DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.ResourceMapping)
+ private static final io.opentdf.platform.policy.ResourceMapping DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.resourcemapping.ResourceMapping();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.ResourceMapping();
}
- public static io.opentdf.platform.policy.resourcemapping.ResourceMapping getDefaultInstance() {
+ public static io.opentdf.platform.policy.ResourceMapping getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@@ -1183,7 +1111,7 @@ public com.google.protobuf.Parser.policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return Whether the attributeValue field is set.
*/
boolean hasAttributeValue();
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
* @return The attributeValue.
*/
- io.opentdf.platform.policy.attributes.Value getAttributeValue();
+ io.opentdf.platform.policy.Value getAttributeValue();
/**
- * .policy.attributes.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
+ * .policy.Value attribute_value = 3 [json_name = "attributeValue", (.buf.validate.field) = { ... }
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder();
+ io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder();
/**
* repeated string terms = 4 [json_name = "terms"];
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/SelectorsProto.java b/sdkjava/src/main/java/io/opentdf/platform/policy/SelectorsProto.java
new file mode 100644
index 0000000..2e66bae
--- /dev/null
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/SelectorsProto.java
@@ -0,0 +1,174 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: policy/selectors.proto
+
+// Protobuf Java Version: 3.25.3
+package io.opentdf.platform.policy;
+
+public final class SelectorsProto {
+ private SelectorsProto() {}
+ 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_policy_AttributeNamespaceSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeNamespaceSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeDefinitionSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeDefinitionSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeDefinitionSelector_NamespaceSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeDefinitionSelector_NamespaceSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeDefinitionSelector_ValueSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeDefinitionSelector_ValueSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeValueSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeValueSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeValueSelector_AttributeSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeValueSelector_AttributeSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_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\026policy/selectors.proto\022\006policy\"\314\003\n\032Att" +
+ "ributeNamespaceSelector\022]\n\017with_attribut" +
+ "es\030\n \001(\01324.policy.AttributeNamespaceSele" +
+ "ctor.AttributeSelectorR\016withAttributes\032\316" +
+ "\002\n\021AttributeSelector\0223\n\026with_key_access_" +
+ "grants\030\001 \001(\010R\023withKeyAccessGrants\022c\n\013wit" +
+ "h_values\030\n \001(\0132B.policy.AttributeNamespa" +
+ "ceSelector.AttributeSelector.ValueSelect" +
+ "orR\nwithValues\032\236\001\n\rValueSelector\0223\n\026with" +
+ "_key_access_grants\030\001 \001(\010R\023withKeyAccessG" +
+ "rants\022*\n\021with_subject_maps\030\002 \001(\010R\017withSu" +
+ "bjectMaps\022,\n\022with_resource_maps\030\003 \001(\010R\020w" +
+ "ithResourceMaps\"\272\003\n\033AttributeDefinitionS" +
+ "elector\0223\n\026with_key_access_grants\030\001 \001(\010R" +
+ "\023withKeyAccessGrants\022\\\n\016with_namespace\030\n" +
+ " \001(\01325.policy.AttributeDefinitionSelecto" +
+ "r.NamespaceSelectorR\rwithNamespace\022R\n\013wi" +
+ "th_values\030\013 \001(\01321.policy.AttributeDefini" +
+ "tionSelector.ValueSelectorR\nwithValues\032\023" +
+ "\n\021NamespaceSelector\032\236\001\n\rValueSelector\0223\n" +
+ "\026with_key_access_grants\030\001 \001(\010R\023withKeyAc" +
+ "cessGrants\022*\n\021with_subject_maps\030\002 \001(\010R\017w" +
+ "ithSubjectMaps\022,\n\022with_resource_maps\030\003 \001" +
+ "(\010R\020withResourceMaps\"\313\003\n\026AttributeValueS" +
+ "elector\0223\n\026with_key_access_grants\030\001 \001(\010R" +
+ "\023withKeyAccessGrants\022*\n\021with_subject_map" +
+ "s\030\002 \001(\010R\017withSubjectMaps\022,\n\022with_resourc" +
+ "e_maps\030\003 \001(\010R\020withResourceMaps\022W\n\016with_a" +
+ "ttribute\030\n \001(\01320.policy.AttributeValueSe" +
+ "lector.AttributeSelectorR\rwithAttribute\032" +
+ "\310\001\n\021AttributeSelector\0223\n\026with_key_access" +
+ "_grants\030\001 \001(\010R\023withKeyAccessGrants\022i\n\016wi" +
+ "th_namespace\030\n \001(\0132B.policy.AttributeVal" +
+ "ueSelector.AttributeSelector.NamespaceSe" +
+ "lectorR\rwithNamespace\032\023\n\021NamespaceSelect" +
+ "orB\224\001\n\032io.opentdf.platform.policyB\016Selec" +
+ "torsProtoP\001Z.github.com/opentdf/platform" +
+ "/protocol/go/policy\242\002\003PXX\252\002\006Policy\312\002\006Pol" +
+ "icy\342\002\022Policy\\GPBMetadata\352\002\006Policyb\006proto" +
+ "3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_policy_AttributeNamespaceSelector_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_policy_AttributeNamespaceSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeNamespaceSelector_descriptor,
+ new java.lang.String[] { "WithAttributes", });
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_descriptor =
+ internal_static_policy_AttributeNamespaceSelector_descriptor.getNestedTypes().get(0);
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithValues", });
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_descriptor =
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_descriptor.getNestedTypes().get(0);
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeNamespaceSelector_AttributeSelector_ValueSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithSubjectMaps", "WithResourceMaps", });
+ internal_static_policy_AttributeDefinitionSelector_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_policy_AttributeDefinitionSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeDefinitionSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithNamespace", "WithValues", });
+ internal_static_policy_AttributeDefinitionSelector_NamespaceSelector_descriptor =
+ internal_static_policy_AttributeDefinitionSelector_descriptor.getNestedTypes().get(0);
+ internal_static_policy_AttributeDefinitionSelector_NamespaceSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeDefinitionSelector_NamespaceSelector_descriptor,
+ new java.lang.String[] { });
+ internal_static_policy_AttributeDefinitionSelector_ValueSelector_descriptor =
+ internal_static_policy_AttributeDefinitionSelector_descriptor.getNestedTypes().get(1);
+ internal_static_policy_AttributeDefinitionSelector_ValueSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeDefinitionSelector_ValueSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithSubjectMaps", "WithResourceMaps", });
+ internal_static_policy_AttributeValueSelector_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_policy_AttributeValueSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeValueSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithSubjectMaps", "WithResourceMaps", "WithAttribute", });
+ internal_static_policy_AttributeValueSelector_AttributeSelector_descriptor =
+ internal_static_policy_AttributeValueSelector_descriptor.getNestedTypes().get(0);
+ internal_static_policy_AttributeValueSelector_AttributeSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeValueSelector_AttributeSelector_descriptor,
+ new java.lang.String[] { "WithKeyAccessGrants", "WithNamespace", });
+ internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_descriptor =
+ internal_static_policy_AttributeValueSelector_AttributeSelector_descriptor.getNestedTypes().get(0);
+ internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_AttributeValueSelector_AttributeSelector_NamespaceSelector_descriptor,
+ new java.lang.String[] { });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectConditionSet.java b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectConditionSet.java
similarity index 72%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectConditionSet.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/SubjectConditionSet.java
index f7381f4..2f0150b 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectConditionSet.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectConditionSet.java
@@ -1,21 +1,22 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
/**
*
- * A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet
- * are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple
- * Subject Mappings / Attribute Values and is an independent unit.
+ *
+ *A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet
+ *are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple
+ *Subject Mappings / Attribute Values and is an independent unit.
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectConditionSet}
+ * Protobuf type {@code policy.SubjectConditionSet}
*/
public final class SubjectConditionSet extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.SubjectConditionSet)
+ // @@protoc_insertion_point(message_implements:policy.SubjectConditionSet)
SubjectConditionSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubjectConditionSet.newBuilder() to construct.
@@ -36,15 +37,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectConditionSet_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectConditionSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectConditionSet_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectConditionSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.class, io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder.class);
+ io.opentdf.platform.policy.SubjectConditionSet.class, io.opentdf.platform.policy.SubjectConditionSet.Builder.class);
}
private int bitField0_;
@@ -89,41 +90,41 @@ public java.lang.String getId() {
public static final int SUBJECT_SETS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private java.util.Listrepeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.Listrepeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.SubjectSetOrBuilder>
getSubjectSetsOrBuilderList() {
return subjectSets_;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
@java.lang.Override
public int getSubjectSetsCount() {
return subjectSets_.size();
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.SubjectSet getSubjectSets(int index) {
+ public io.opentdf.platform.policy.SubjectSet getSubjectSets(int index) {
return subjectSets_.get(index);
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder getSubjectSetsOrBuilder(
+ public io.opentdf.platform.policy.SubjectSetOrBuilder getSubjectSetsOrBuilder(
int index) {
return subjectSets_.get(index);
}
@@ -207,10 +208,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.SubjectConditionSet)) {
+ if (!(obj instanceof io.opentdf.platform.policy.SubjectConditionSet)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet other = (io.opentdf.platform.policy.subjectmapping.SubjectConditionSet) obj;
+ io.opentdf.platform.policy.SubjectConditionSet other = (io.opentdf.platform.policy.SubjectConditionSet) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -247,44 +248,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -292,26 +293,26 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet pars
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectConditionSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseDelimitedFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet 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 io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectConditionSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -324,7 +325,7 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectConditionSet pars
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.SubjectConditionSet prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.SubjectConditionSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -341,31 +342,32 @@ protected Builder newBuilderForType(
}
/**
*
- * A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet
- * are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple
- * Subject Mappings / Attribute Values and is an independent unit.
+ *
+ *A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet
+ *are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple
+ *Subject Mappings / Attribute Values and is an independent unit.
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectConditionSet}
+ * Protobuf type {@code policy.SubjectConditionSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public java.util.Listrepeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public int getSubjectSetsCount() {
if (subjectSetsBuilder_ == null) {
@@ -709,9 +711,9 @@ public int getSubjectSetsCount() {
}
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectSet getSubjectSets(int index) {
+ public io.opentdf.platform.policy.SubjectSet getSubjectSets(int index) {
if (subjectSetsBuilder_ == null) {
return subjectSets_.get(index);
} else {
@@ -719,10 +721,10 @@ public io.opentdf.platform.policy.subjectmapping.SubjectSet getSubjectSets(int i
}
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder setSubjectSets(
- int index, io.opentdf.platform.policy.subjectmapping.SubjectSet value) {
+ int index, io.opentdf.platform.policy.SubjectSet value) {
if (subjectSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -736,10 +738,10 @@ public Builder setSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder setSubjectSets(
- int index, io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.SubjectSet.Builder builderForValue) {
if (subjectSetsBuilder_ == null) {
ensureSubjectSetsIsMutable();
subjectSets_.set(index, builderForValue.build());
@@ -750,9 +752,9 @@ public Builder setSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public Builder addSubjectSets(io.opentdf.platform.policy.subjectmapping.SubjectSet value) {
+ public Builder addSubjectSets(io.opentdf.platform.policy.SubjectSet value) {
if (subjectSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -766,10 +768,10 @@ public Builder addSubjectSets(io.opentdf.platform.policy.subjectmapping.SubjectS
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder addSubjectSets(
- int index, io.opentdf.platform.policy.subjectmapping.SubjectSet value) {
+ int index, io.opentdf.platform.policy.SubjectSet value) {
if (subjectSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -783,10 +785,10 @@ public Builder addSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder addSubjectSets(
- io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder builderForValue) {
+ io.opentdf.platform.policy.SubjectSet.Builder builderForValue) {
if (subjectSetsBuilder_ == null) {
ensureSubjectSetsIsMutable();
subjectSets_.add(builderForValue.build());
@@ -797,10 +799,10 @@ public Builder addSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder addSubjectSets(
- int index, io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.SubjectSet.Builder builderForValue) {
if (subjectSetsBuilder_ == null) {
ensureSubjectSetsIsMutable();
subjectSets_.add(index, builderForValue.build());
@@ -811,10 +813,10 @@ public Builder addSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder addAllSubjectSets(
- java.lang.Iterable extends io.opentdf.platform.policy.subjectmapping.SubjectSet> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.SubjectSet> values) {
if (subjectSetsBuilder_ == null) {
ensureSubjectSetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -826,7 +828,7 @@ public Builder addAllSubjectSets(
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder clearSubjectSets() {
if (subjectSetsBuilder_ == null) {
@@ -839,7 +841,7 @@ public Builder clearSubjectSets() {
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
public Builder removeSubjectSets(int index) {
if (subjectSetsBuilder_ == null) {
@@ -852,16 +854,16 @@ public Builder removeSubjectSets(int index) {
return this;
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder getSubjectSetsBuilder(
+ public io.opentdf.platform.policy.SubjectSet.Builder getSubjectSetsBuilder(
int index) {
return getSubjectSetsFieldBuilder().getBuilder(index);
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder getSubjectSetsOrBuilder(
+ public io.opentdf.platform.policy.SubjectSetOrBuilder getSubjectSetsOrBuilder(
int index) {
if (subjectSetsBuilder_ == null) {
return subjectSets_.get(index); } else {
@@ -869,9 +871,9 @@ public io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder getSubjectS
}
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.SubjectSetOrBuilder>
getSubjectSetsOrBuilderList() {
if (subjectSetsBuilder_ != null) {
return subjectSetsBuilder_.getMessageOrBuilderList();
@@ -880,33 +882,33 @@ public io.opentdf.platform.policy.subjectmapping.SubjectSetOrBuilder getSubjectS
}
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder addSubjectSetsBuilder() {
+ public io.opentdf.platform.policy.SubjectSet.Builder addSubjectSetsBuilder() {
return getSubjectSetsFieldBuilder().addBuilder(
- io.opentdf.platform.policy.subjectmapping.SubjectSet.getDefaultInstance());
+ io.opentdf.platform.policy.SubjectSet.getDefaultInstance());
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder addSubjectSetsBuilder(
+ public io.opentdf.platform.policy.SubjectSet.Builder addSubjectSetsBuilder(
int index) {
return getSubjectSetsFieldBuilder().addBuilder(
- index, io.opentdf.platform.policy.subjectmapping.SubjectSet.getDefaultInstance());
+ index, io.opentdf.platform.policy.SubjectSet.getDefaultInstance());
}
/**
- * repeated .policy.subjectmapping.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
*/
- public java.util.Liststring id = 1 [json_name = "id"];
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1 [json_name = "id"];
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ */
+ java.util.Listrepeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.SubjectSet getSubjectSets(int index);
+ /**
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ */
+ int getSubjectSetsCount();
+ /**
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends io.opentdf.platform.policy.SubjectSetOrBuilder>
+ getSubjectSetsOrBuilderList();
+ /**
+ * repeated .policy.SubjectSet subject_sets = 3 [json_name = "subjectSets", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.SubjectSetOrBuilder getSubjectSetsOrBuilder(
+ int index);
+
+ /**
+ * .common.Metadata metadata = 100 [json_name = "metadata"];
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ * .common.Metadata metadata = 100 [json_name = "metadata"];
+ * @return The metadata.
+ */
+ io.opentdf.platform.common.Metadata getMetadata();
+ /**
+ * .common.Metadata metadata = 100 [json_name = "metadata"];
+ */
+ io.opentdf.platform.common.MetadataOrBuilder getMetadataOrBuilder();
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMapping.java b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMapping.java
similarity index 74%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMapping.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMapping.java
index a294113..d8d0c94 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMapping.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMapping.java
@@ -1,8 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
/**
*
@@ -19,11 +19,11 @@
*}
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectMapping}
+ * Protobuf type {@code policy.SubjectMapping}
*/
public final class SubjectMapping extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.SubjectMapping)
+ // @@protoc_insertion_point(message_implements:policy.SubjectMapping)
SubjectMappingOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubjectMapping.newBuilder() to construct.
@@ -44,15 +44,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectMapping_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectMapping_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.SubjectMapping.class, io.opentdf.platform.policy.subjectmapping.SubjectMapping.Builder.class);
+ io.opentdf.platform.policy.SubjectMapping.class, io.opentdf.platform.policy.SubjectMapping.Builder.class);
}
private int bitField0_;
@@ -96,13 +96,13 @@ public java.lang.String getId() {
}
public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 2;
- private io.opentdf.platform.policy.attributes.Value attributeValue_;
+ private io.opentdf.platform.policy.Value attributeValue_;
/**
*
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return Whether the attributeValue field is set.
*/
@java.lang.Override
@@ -114,33 +114,33 @@ public boolean hasAttributeValue() {
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
* .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return The attributeValue.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getAttributeValue() {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ public io.opentdf.platform.policy.Value getAttributeValue() {
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
/**
*
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder() {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ public io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder() {
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
public static final int SUBJECT_CONDITION_SET_FIELD_NUMBER = 3;
- private io.opentdf.platform.policy.subjectmapping.SubjectConditionSet subjectConditionSet_;
+ private io.opentdf.platform.policy.SubjectConditionSet subjectConditionSet_;
/**
*
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return Whether the subjectConditionSet field is set.
*/
@java.lang.Override
@@ -152,37 +152,37 @@ public boolean hasSubjectConditionSet() {
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return The subjectConditionSet.
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.SubjectConditionSet getSubjectConditionSet() {
- return subjectConditionSet_ == null ? io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
+ public io.opentdf.platform.policy.SubjectConditionSet getSubjectConditionSet() {
+ return subjectConditionSet_ == null ? io.opentdf.platform.policy.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
}
/**
*
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder() {
- return subjectConditionSet_ == null ? io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
+ public io.opentdf.platform.policy.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder() {
+ return subjectConditionSet_ == null ? io.opentdf.platform.policy.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
}
public static final int ACTIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
- private java.util.List
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
@java.lang.Override
- public java.util.Listrepeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList() {
return actions_;
}
@@ -202,7 +202,7 @@ public java.util.Listrepeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
@java.lang.Override
public int getActionsCount() {
@@ -213,10 +213,10 @@ public int getActionsCount() {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
@java.lang.Override
- public io.opentdf.platform.authorization.Action getActions(int index) {
+ public io.opentdf.platform.policy.Action getActions(int index) {
return actions_.get(index);
}
/**
@@ -224,10 +224,10 @@ public io.opentdf.platform.authorization.Action getActions(int index) {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
@java.lang.Override
- public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ public io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index) {
return actions_.get(index);
}
@@ -325,10 +325,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.SubjectMapping)) {
+ if (!(obj instanceof io.opentdf.platform.policy.SubjectMapping)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.SubjectMapping other = (io.opentdf.platform.policy.subjectmapping.SubjectMapping) obj;
+ io.opentdf.platform.policy.SubjectMapping other = (io.opentdf.platform.policy.SubjectMapping) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -383,44 +383,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -428,26 +428,26 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseDelimitedFrom(
+ public static io.opentdf.platform.policy.SubjectMapping 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 io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom(
+ public static io.opentdf.platform.policy.SubjectMapping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -460,7 +460,7 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectMapping parseFrom
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.SubjectMapping prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.SubjectMapping prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -490,26 +490,26 @@ protected Builder newBuilderForType(
*}
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectMapping}
+ * Protobuf type {@code policy.SubjectMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return Whether the attributeValue field is set.
*/
public boolean hasAttributeValue() {
@@ -883,12 +883,12 @@ public boolean hasAttributeValue() {
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return The attributeValue.
*/
- public io.opentdf.platform.policy.attributes.Value getAttributeValue() {
+ public io.opentdf.platform.policy.Value getAttributeValue() {
if (attributeValueBuilder_ == null) {
- return attributeValue_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ return attributeValue_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
} else {
return attributeValueBuilder_.getMessage();
}
@@ -898,9 +898,9 @@ public io.opentdf.platform.policy.attributes.Value getAttributeValue() {
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
- public Builder setAttributeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder setAttributeValue(io.opentdf.platform.policy.Value value) {
if (attributeValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -918,10 +918,10 @@ public Builder setAttributeValue(io.opentdf.platform.policy.attributes.Value val
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
public Builder setAttributeValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (attributeValueBuilder_ == null) {
attributeValue_ = builderForValue.build();
} else {
@@ -936,13 +936,13 @@ public Builder setAttributeValue(
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
- public Builder mergeAttributeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder mergeAttributeValue(io.opentdf.platform.policy.Value value) {
if (attributeValueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
attributeValue_ != null &&
- attributeValue_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
+ attributeValue_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
getAttributeValueBuilder().mergeFrom(value);
} else {
attributeValue_ = value;
@@ -961,7 +961,7 @@ public Builder mergeAttributeValue(io.opentdf.platform.policy.attributes.Value v
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
public Builder clearAttributeValue() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -978,9 +978,9 @@ public Builder clearAttributeValue() {
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getAttributeValueBuilder() {
+ public io.opentdf.platform.policy.Value.Builder getAttributeValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAttributeValueFieldBuilder().getBuilder();
@@ -990,14 +990,14 @@ public io.opentdf.platform.policy.attributes.Value.Builder getAttributeValueBuil
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder() {
+ public io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder() {
if (attributeValueBuilder_ != null) {
return attributeValueBuilder_.getMessageOrBuilder();
} else {
return attributeValue_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : attributeValue_;
+ io.opentdf.platform.policy.Value.getDefaultInstance() : attributeValue_;
}
}
/**
@@ -1005,14 +1005,14 @@ public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrB
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
getAttributeValueFieldBuilder() {
if (attributeValueBuilder_ == null) {
attributeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
getAttributeValue(),
getParentForChildren(),
isClean());
@@ -1021,15 +1021,15 @@ public io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrB
return attributeValueBuilder_;
}
- private io.opentdf.platform.policy.subjectmapping.SubjectConditionSet subjectConditionSet_;
+ private io.opentdf.platform.policy.SubjectConditionSet subjectConditionSet_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet, io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder, io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder> subjectConditionSetBuilder_;
+ io.opentdf.platform.policy.SubjectConditionSet, io.opentdf.platform.policy.SubjectConditionSet.Builder, io.opentdf.platform.policy.SubjectConditionSetOrBuilder> subjectConditionSetBuilder_;
/**
*
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return Whether the subjectConditionSet field is set.
*/
public boolean hasSubjectConditionSet() {
@@ -1040,12 +1040,12 @@ public boolean hasSubjectConditionSet() {
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return The subjectConditionSet.
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectConditionSet getSubjectConditionSet() {
+ public io.opentdf.platform.policy.SubjectConditionSet getSubjectConditionSet() {
if (subjectConditionSetBuilder_ == null) {
- return subjectConditionSet_ == null ? io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
+ return subjectConditionSet_ == null ? io.opentdf.platform.policy.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
} else {
return subjectConditionSetBuilder_.getMessage();
}
@@ -1055,9 +1055,9 @@ public io.opentdf.platform.policy.subjectmapping.SubjectConditionSet getSubjectC
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
- public Builder setSubjectConditionSet(io.opentdf.platform.policy.subjectmapping.SubjectConditionSet value) {
+ public Builder setSubjectConditionSet(io.opentdf.platform.policy.SubjectConditionSet value) {
if (subjectConditionSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1075,10 +1075,10 @@ public Builder setSubjectConditionSet(io.opentdf.platform.policy.subjectmapping.
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
public Builder setSubjectConditionSet(
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder builderForValue) {
+ io.opentdf.platform.policy.SubjectConditionSet.Builder builderForValue) {
if (subjectConditionSetBuilder_ == null) {
subjectConditionSet_ = builderForValue.build();
} else {
@@ -1093,13 +1093,13 @@ public Builder setSubjectConditionSet(
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
- public Builder mergeSubjectConditionSet(io.opentdf.platform.policy.subjectmapping.SubjectConditionSet value) {
+ public Builder mergeSubjectConditionSet(io.opentdf.platform.policy.SubjectConditionSet value) {
if (subjectConditionSetBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
subjectConditionSet_ != null &&
- subjectConditionSet_ != io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.getDefaultInstance()) {
+ subjectConditionSet_ != io.opentdf.platform.policy.SubjectConditionSet.getDefaultInstance()) {
getSubjectConditionSetBuilder().mergeFrom(value);
} else {
subjectConditionSet_ = value;
@@ -1118,7 +1118,7 @@ public Builder mergeSubjectConditionSet(io.opentdf.platform.policy.subjectmappin
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
public Builder clearSubjectConditionSet() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1135,9 +1135,9 @@ public Builder clearSubjectConditionSet() {
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder getSubjectConditionSetBuilder() {
+ public io.opentdf.platform.policy.SubjectConditionSet.Builder getSubjectConditionSetBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSubjectConditionSetFieldBuilder().getBuilder();
@@ -1147,14 +1147,14 @@ public io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder get
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
- public io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder() {
+ public io.opentdf.platform.policy.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder() {
if (subjectConditionSetBuilder_ != null) {
return subjectConditionSetBuilder_.getMessageOrBuilder();
} else {
return subjectConditionSet_ == null ?
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
+ io.opentdf.platform.policy.SubjectConditionSet.getDefaultInstance() : subjectConditionSet_;
}
}
/**
@@ -1162,14 +1162,14 @@ public io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder ge
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet, io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder, io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder>
+ io.opentdf.platform.policy.SubjectConditionSet, io.opentdf.platform.policy.SubjectConditionSet.Builder, io.opentdf.platform.policy.SubjectConditionSetOrBuilder>
getSubjectConditionSetFieldBuilder() {
if (subjectConditionSetBuilder_ == null) {
subjectConditionSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet, io.opentdf.platform.policy.subjectmapping.SubjectConditionSet.Builder, io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder>(
+ io.opentdf.platform.policy.SubjectConditionSet, io.opentdf.platform.policy.SubjectConditionSet.Builder, io.opentdf.platform.policy.SubjectConditionSetOrBuilder>(
getSubjectConditionSet(),
getParentForChildren(),
isClean());
@@ -1178,26 +1178,26 @@ public io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder ge
return subjectConditionSetBuilder_;
}
- private java.util.List
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public java.util.Listrepeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public int getActionsCount() {
if (actionsBuilder_ == null) {
@@ -1223,9 +1223,9 @@ public int getActionsCount() {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action getActions(int index) {
+ public io.opentdf.platform.policy.Action getActions(int index) {
if (actionsBuilder_ == null) {
return actions_.get(index);
} else {
@@ -1237,10 +1237,10 @@ public io.opentdf.platform.authorization.Action getActions(int index) {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder setActions(
- int index, io.opentdf.platform.authorization.Action value) {
+ int index, io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1258,10 +1258,10 @@ public Builder setActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder setActions(
- int index, io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.set(index, builderForValue.build());
@@ -1276,9 +1276,9 @@ public Builder setActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public Builder addActions(io.opentdf.platform.authorization.Action value) {
+ public Builder addActions(io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1296,10 +1296,10 @@ public Builder addActions(io.opentdf.platform.authorization.Action value) {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder addActions(
- int index, io.opentdf.platform.authorization.Action value) {
+ int index, io.opentdf.platform.policy.Action value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1317,10 +1317,10 @@ public Builder addActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder addActions(
- io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(builderForValue.build());
@@ -1335,10 +1335,10 @@ public Builder addActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder addActions(
- int index, io.opentdf.platform.authorization.Action.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.Action.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(index, builderForValue.build());
@@ -1353,10 +1353,10 @@ public Builder addActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder addAllActions(
- java.lang.Iterable extends io.opentdf.platform.authorization.Action> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.Action> values) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1372,7 +1372,7 @@ public Builder addAllActions(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
@@ -1389,7 +1389,7 @@ public Builder clearActions() {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
public Builder removeActions(int index) {
if (actionsBuilder_ == null) {
@@ -1406,9 +1406,9 @@ public Builder removeActions(int index) {
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder getActionsBuilder(
+ public io.opentdf.platform.policy.Action.Builder getActionsBuilder(
int index) {
return getActionsFieldBuilder().getBuilder(index);
}
@@ -1417,9 +1417,9 @@ public io.opentdf.platform.authorization.Action.Builder getActionsBuilder(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ public io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index) {
if (actionsBuilder_ == null) {
return actions_.get(index); } else {
@@ -1431,9 +1431,9 @@ public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilderList();
@@ -1446,41 +1446,41 @@ public io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder addActionsBuilder() {
+ public io.opentdf.platform.policy.Action.Builder addActionsBuilder() {
return getActionsFieldBuilder().addBuilder(
- io.opentdf.platform.authorization.Action.getDefaultInstance());
+ io.opentdf.platform.policy.Action.getDefaultInstance());
}
/**
*
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public io.opentdf.platform.authorization.Action.Builder addActionsBuilder(
+ public io.opentdf.platform.policy.Action.Builder addActionsBuilder(
int index) {
return getActionsFieldBuilder().addBuilder(
- index, io.opentdf.platform.authorization.Action.getDefaultInstance());
+ index, io.opentdf.platform.policy.Action.getDefaultInstance());
}
/**
*
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- public java.util.List
* buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
*
*
- * Protobuf enum {@code policy.subjectmapping.SubjectMappingOperatorEnum}
+ * Protobuf enum {@code policy.SubjectMappingOperatorEnum}
*/
public enum SubjectMappingOperatorEnum
implements com.google.protobuf.ProtocolMessageEnum {
@@ -99,7 +99,7 @@ public SubjectMappingOperatorEnum findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.getDescriptor().getEnumTypes().get(0);
+ return io.opentdf.platform.policy.ObjectsProto.getDescriptor().getEnumTypes().get(1);
}
private static final SubjectMappingOperatorEnum[] VALUES = values();
@@ -122,6 +122,6 @@ private SubjectMappingOperatorEnum(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:policy.subjectmapping.SubjectMappingOperatorEnum)
+ // @@protoc_insertion_point(enum_scope:policy.SubjectMappingOperatorEnum)
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMappingOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMappingOrBuilder.java
similarity index 56%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMappingOrBuilder.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMappingOrBuilder.java
index 5207a55..8c500af 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectMappingOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectMappingOrBuilder.java
@@ -1,11 +1,11 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
public interface SubjectMappingOrBuilder extends
- // @@protoc_insertion_point(interface_extends:policy.subjectmapping.SubjectMapping)
+ // @@protoc_insertion_point(interface_extends:policy.SubjectMapping)
com.google.protobuf.MessageOrBuilder {
/**
@@ -25,7 +25,7 @@ public interface SubjectMappingOrBuilder extends
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return Whether the attributeValue field is set.
*/
boolean hasAttributeValue();
@@ -34,25 +34,25 @@ public interface SubjectMappingOrBuilder extends
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
* @return The attributeValue.
*/
- io.opentdf.platform.policy.attributes.Value getAttributeValue();
+ io.opentdf.platform.policy.Value getAttributeValue();
/**
*
* the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
*
*
- * .policy.attributes.Value attribute_value = 2 [json_name = "attributeValue"];
+ * .policy.Value attribute_value = 2 [json_name = "attributeValue"];
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getAttributeValueOrBuilder();
+ io.opentdf.platform.policy.ValueOrBuilder getAttributeValueOrBuilder();
/**
*
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return Whether the subjectConditionSet field is set.
*/
boolean hasSubjectConditionSet();
@@ -61,42 +61,42 @@ public interface SubjectMappingOrBuilder extends
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
* @return The subjectConditionSet.
*/
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSet getSubjectConditionSet();
+ io.opentdf.platform.policy.SubjectConditionSet getSubjectConditionSet();
/**
*
* the reusable SubjectConditionSet mapped to the given Attribute Value
*
*
- * .policy.subjectmapping.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
+ * .policy.SubjectConditionSet subject_condition_set = 3 [json_name = "subjectConditionSet"];
*/
- io.opentdf.platform.policy.subjectmapping.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder();
+ io.opentdf.platform.policy.SubjectConditionSetOrBuilder getSubjectConditionSetOrBuilder();
/**
*
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- java.util.List
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- io.opentdf.platform.authorization.Action getActions(int index);
+ io.opentdf.platform.policy.Action getActions(int index);
/**
*
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
int getActionsCount();
/**
@@ -104,18 +104,18 @@ public interface SubjectMappingOrBuilder extends
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- java.util.List extends io.opentdf.platform.authorization.ActionOrBuilder>
+ java.util.List extends io.opentdf.platform.policy.ActionOrBuilder>
getActionsOrBuilderList();
/**
*
* The actions permitted by subjects in this mapping
*
*
- * repeated .authorization.Action actions = 4 [json_name = "actions"];
+ * repeated .policy.Action actions = 4 [json_name = "actions"];
*/
- io.opentdf.platform.authorization.ActionOrBuilder getActionsOrBuilder(
+ io.opentdf.platform.policy.ActionOrBuilder getActionsOrBuilder(
int index);
/**
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectProperty.java b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectProperty.java
similarity index 79%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectProperty.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/SubjectProperty.java
index 465a2d1..96769a2 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/subjectmapping/SubjectProperty.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/SubjectProperty.java
@@ -1,21 +1,22 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/subjectmapping/subject_mapping.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.subjectmapping;
+package io.opentdf.platform.policy;
/**
*
- * A property of a Subject/Entity as a field->value pair. This would mirror external user attributes retrieved
- * from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.
- * For now, a valid property must contain both field & value.
+ *
+ *A property of a Subject/Entity as a field->value pair. This would mirror external user attributes retrieved
+ *from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.
+ *For now, a valid property must contain both field & value.
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectProperty}
+ * Protobuf type {@code policy.SubjectProperty}
*/
public final class SubjectProperty extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.SubjectProperty)
+ // @@protoc_insertion_point(message_implements:policy.SubjectProperty)
SubjectPropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubjectProperty.newBuilder() to construct.
@@ -36,15 +37,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectProperty_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectProperty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectProperty_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectProperty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.SubjectProperty.class, io.opentdf.platform.policy.subjectmapping.SubjectProperty.Builder.class);
+ io.opentdf.platform.policy.SubjectProperty.class, io.opentdf.platform.policy.SubjectProperty.Builder.class);
}
public static final int EXTERNAL_FIELD_FIELD_NUMBER = 1;
@@ -170,10 +171,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.SubjectProperty)) {
+ if (!(obj instanceof io.opentdf.platform.policy.SubjectProperty)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.SubjectProperty other = (io.opentdf.platform.policy.subjectmapping.SubjectProperty) obj;
+ io.opentdf.platform.policy.SubjectProperty other = (io.opentdf.platform.policy.SubjectProperty) obj;
if (!getExternalField()
.equals(other.getExternalField())) return false;
@@ -199,44 +200,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -244,26 +245,26 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFro
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectProperty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseDelimitedFrom(
+ public static io.opentdf.platform.policy.SubjectProperty 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 io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFrom(
+ public static io.opentdf.platform.policy.SubjectProperty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -276,7 +277,7 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectProperty parseFro
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.SubjectProperty prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.SubjectProperty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -293,31 +294,32 @@ protected Builder newBuilderForType(
}
/**
*
- * A property of a Subject/Entity as a field->value pair. This would mirror external user attributes retrieved
- * from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.
- * For now, a valid property must contain both field & value.
+ *
+ *A property of a Subject/Entity as a field->value pair. This would mirror external user attributes retrieved
+ *from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.
+ *For now, a valid property must contain both field & value.
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectProperty}
+ * Protobuf type {@code policy.SubjectProperty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* A collection of Condition Groups
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectSet}
+ * Protobuf type {@code policy.SubjectSet}
*/
public final class SubjectSet extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.subjectmapping.SubjectSet)
+ // @@protoc_insertion_point(message_implements:policy.SubjectSet)
SubjectSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubjectSet.newBuilder() to construct.
@@ -33,29 +33,29 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectSet_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.subjectmapping.SubjectMappingProto.internal_static_policy_subjectmapping_SubjectSet_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_SubjectSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.subjectmapping.SubjectSet.class, io.opentdf.platform.policy.subjectmapping.SubjectSet.Builder.class);
+ io.opentdf.platform.policy.SubjectSet.class, io.opentdf.platform.policy.SubjectSet.Builder.class);
}
public static final int CONDITION_GROUPS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private java.util.List
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.Listrepeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ConditionGroupOrBuilder>
getConditionGroupsOrBuilderList() {
return conditionGroups_;
}
@@ -75,7 +75,7 @@ public java.util.Listrepeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
@java.lang.Override
public int getConditionGroupsCount() {
@@ -86,10 +86,10 @@ public int getConditionGroupsCount() {
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.ConditionGroup getConditionGroups(int index) {
+ public io.opentdf.platform.policy.ConditionGroup getConditionGroups(int index) {
return conditionGroups_.get(index);
}
/**
@@ -97,10 +97,10 @@ public io.opentdf.platform.policy.subjectmapping.ConditionGroup getConditionGrou
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
@java.lang.Override
- public io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder getConditionGroupsOrBuilder(
+ public io.opentdf.platform.policy.ConditionGroupOrBuilder getConditionGroupsOrBuilder(
int index) {
return conditionGroups_.get(index);
}
@@ -145,10 +145,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.subjectmapping.SubjectSet)) {
+ if (!(obj instanceof io.opentdf.platform.policy.SubjectSet)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.subjectmapping.SubjectSet other = (io.opentdf.platform.policy.subjectmapping.SubjectSet) obj;
+ io.opentdf.platform.policy.SubjectSet other = (io.opentdf.platform.policy.SubjectSet) obj;
if (!getConditionGroupsList()
.equals(other.getConditionGroupsList())) return false;
@@ -172,44 +172,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -217,26 +217,26 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.SubjectSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseDelimitedFrom(
+ public static io.opentdf.platform.policy.SubjectSet 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 io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
+ public static io.opentdf.platform.policy.SubjectSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -249,7 +249,7 @@ public static io.opentdf.platform.policy.subjectmapping.SubjectSet parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.subjectmapping.SubjectSet prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.SubjectSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -269,26 +269,26 @@ protected Builder newBuilderForType(
* A collection of Condition Groups
*
*
- * Protobuf type {@code policy.subjectmapping.SubjectSet}
+ * Protobuf type {@code policy.SubjectSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public java.util.Listrepeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public int getConditionGroupsCount() {
if (conditionGroupsBuilder_ == null) {
@@ -528,9 +528,9 @@ public int getConditionGroupsCount() {
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionGroup getConditionGroups(int index) {
+ public io.opentdf.platform.policy.ConditionGroup getConditionGroups(int index) {
if (conditionGroupsBuilder_ == null) {
return conditionGroups_.get(index);
} else {
@@ -542,10 +542,10 @@ public io.opentdf.platform.policy.subjectmapping.ConditionGroup getConditionGrou
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder setConditionGroups(
- int index, io.opentdf.platform.policy.subjectmapping.ConditionGroup value) {
+ int index, io.opentdf.platform.policy.ConditionGroup value) {
if (conditionGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -563,10 +563,10 @@ public Builder setConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder setConditionGroups(
- int index, io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.ConditionGroup.Builder builderForValue) {
if (conditionGroupsBuilder_ == null) {
ensureConditionGroupsIsMutable();
conditionGroups_.set(index, builderForValue.build());
@@ -581,9 +581,9 @@ public Builder setConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public Builder addConditionGroups(io.opentdf.platform.policy.subjectmapping.ConditionGroup value) {
+ public Builder addConditionGroups(io.opentdf.platform.policy.ConditionGroup value) {
if (conditionGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -601,10 +601,10 @@ public Builder addConditionGroups(io.opentdf.platform.policy.subjectmapping.Cond
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder addConditionGroups(
- int index, io.opentdf.platform.policy.subjectmapping.ConditionGroup value) {
+ int index, io.opentdf.platform.policy.ConditionGroup value) {
if (conditionGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -622,10 +622,10 @@ public Builder addConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder addConditionGroups(
- io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder builderForValue) {
+ io.opentdf.platform.policy.ConditionGroup.Builder builderForValue) {
if (conditionGroupsBuilder_ == null) {
ensureConditionGroupsIsMutable();
conditionGroups_.add(builderForValue.build());
@@ -640,10 +640,10 @@ public Builder addConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder addConditionGroups(
- int index, io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder builderForValue) {
+ int index, io.opentdf.platform.policy.ConditionGroup.Builder builderForValue) {
if (conditionGroupsBuilder_ == null) {
ensureConditionGroupsIsMutable();
conditionGroups_.add(index, builderForValue.build());
@@ -658,10 +658,10 @@ public Builder addConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder addAllConditionGroups(
- java.lang.Iterable extends io.opentdf.platform.policy.subjectmapping.ConditionGroup> values) {
+ java.lang.Iterable extends io.opentdf.platform.policy.ConditionGroup> values) {
if (conditionGroupsBuilder_ == null) {
ensureConditionGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -677,7 +677,7 @@ public Builder addAllConditionGroups(
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder clearConditionGroups() {
if (conditionGroupsBuilder_ == null) {
@@ -694,7 +694,7 @@ public Builder clearConditionGroups() {
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
public Builder removeConditionGroups(int index) {
if (conditionGroupsBuilder_ == null) {
@@ -711,9 +711,9 @@ public Builder removeConditionGroups(int index) {
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder getConditionGroupsBuilder(
+ public io.opentdf.platform.policy.ConditionGroup.Builder getConditionGroupsBuilder(
int index) {
return getConditionGroupsFieldBuilder().getBuilder(index);
}
@@ -722,9 +722,9 @@ public io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder getCondi
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder getConditionGroupsOrBuilder(
+ public io.opentdf.platform.policy.ConditionGroupOrBuilder getConditionGroupsOrBuilder(
int index) {
if (conditionGroupsBuilder_ == null) {
return conditionGroups_.get(index); } else {
@@ -736,9 +736,9 @@ public io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder getCond
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public java.util.List extends io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder>
+ public java.util.List extends io.opentdf.platform.policy.ConditionGroupOrBuilder>
getConditionGroupsOrBuilderList() {
if (conditionGroupsBuilder_ != null) {
return conditionGroupsBuilder_.getMessageOrBuilderList();
@@ -751,41 +751,41 @@ public io.opentdf.platform.policy.subjectmapping.ConditionGroupOrBuilder getCond
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder addConditionGroupsBuilder() {
+ public io.opentdf.platform.policy.ConditionGroup.Builder addConditionGroupsBuilder() {
return getConditionGroupsFieldBuilder().addBuilder(
- io.opentdf.platform.policy.subjectmapping.ConditionGroup.getDefaultInstance());
+ io.opentdf.platform.policy.ConditionGroup.getDefaultInstance());
}
/**
*
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public io.opentdf.platform.policy.subjectmapping.ConditionGroup.Builder addConditionGroupsBuilder(
+ public io.opentdf.platform.policy.ConditionGroup.Builder addConditionGroupsBuilder(
int index) {
return getConditionGroupsFieldBuilder().addBuilder(
- index, io.opentdf.platform.policy.subjectmapping.ConditionGroup.getDefaultInstance());
+ index, io.opentdf.platform.policy.ConditionGroup.getDefaultInstance());
}
/**
*
* multiple Condition Groups are evaluated with AND logic
*
*
- * repeated .policy.subjectmapping.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
*/
- public java.util.List
+ * multiple Condition Groups are evaluated with AND logic
+ *
+ *
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ * multiple Condition Groups are evaluated with AND logic
+ *
+ *
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.ConditionGroup getConditionGroups(int index);
+ /**
+ *
+ * multiple Condition Groups are evaluated with AND logic
+ *
+ *
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ */
+ int getConditionGroupsCount();
+ /**
+ *
+ * multiple Condition Groups are evaluated with AND logic
+ *
+ *
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends io.opentdf.platform.policy.ConditionGroupOrBuilder>
+ getConditionGroupsOrBuilderList();
+ /**
+ *
+ * multiple Condition Groups are evaluated with AND logic
+ *
+ *
+ * repeated .policy.ConditionGroup condition_groups = 1 [json_name = "conditionGroups", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.ConditionGroupOrBuilder getConditionGroupsOrBuilder(
+ int index);
+}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Value.java b/sdkjava/src/main/java/io/opentdf/platform/policy/Value.java
similarity index 74%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Value.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/Value.java
index cff6145..edf1ed2 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/Value.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/Value.java
@@ -1,15 +1,15 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/attributes/attributes.proto
+// source: policy/objects.proto
// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.attributes;
+package io.opentdf.platform.policy;
/**
- * Protobuf type {@code policy.attributes.Value}
+ * Protobuf type {@code policy.Value}
*/
public final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.attributes.Value)
+ // @@protoc_insertion_point(message_implements:policy.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
@@ -23,6 +23,7 @@ private Value() {
com.google.protobuf.LazyStringArrayList.emptyList();
grants_ = java.util.Collections.emptyList();
fqn_ = "";
+ subjectMappings_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -34,15 +35,15 @@ protected java.lang.Object newInstance(
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_Value_descriptor;
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_Value_fieldAccessorTable
+ return io.opentdf.platform.policy.ObjectsProto.internal_static_policy_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.attributes.Value.class, io.opentdf.platform.policy.attributes.Value.Builder.class);
+ io.opentdf.platform.policy.Value.class, io.opentdf.platform.policy.Value.Builder.class);
}
private int bitField0_;
@@ -94,9 +95,9 @@ public java.lang.String getId() {
}
public static final int ATTRIBUTE_FIELD_NUMBER = 2;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
@java.lang.Override
@@ -104,19 +105,19 @@ public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return The attribute.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
public static final int VALUE_FIELD_NUMBER = 3;
@@ -349,6 +350,67 @@ public com.google.protobuf.BoolValueOrBuilder getActiveOrBuilder() {
return active_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : active_;
}
+ public static final int SUBJECT_MAPPINGS_FIELD_NUMBER = 8;
+ @SuppressWarnings("serial")
+ private java.util.List
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ @java.lang.Override
+ public java.util.List
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ @java.lang.Override
+ public java.util.List extends io.opentdf.platform.policy.SubjectMappingOrBuilder>
+ getSubjectMappingsOrBuilderList() {
+ return subjectMappings_;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ @java.lang.Override
+ public int getSubjectMappingsCount() {
+ return subjectMappings_.size();
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.SubjectMapping getSubjectMappings(int index) {
+ return subjectMappings_.get(index);
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.SubjectMappingOrBuilder getSubjectMappingsOrBuilder(
+ int index) {
+ return subjectMappings_.get(index);
+ }
+
public static final int METADATA_FIELD_NUMBER = 100;
private io.opentdf.platform.common.Metadata metadata_;
/**
@@ -422,6 +484,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getActive());
}
+ for (int i = 0; i < subjectMappings_.size(); i++) {
+ output.writeMessage(8, subjectMappings_.get(i));
+ }
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(100, getMetadata());
}
@@ -463,6 +528,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getActive());
}
+ for (int i = 0; i < subjectMappings_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, subjectMappings_.get(i));
+ }
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(100, getMetadata());
@@ -477,10 +546,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.attributes.Value)) {
+ if (!(obj instanceof io.opentdf.platform.policy.Value)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.attributes.Value other = (io.opentdf.platform.policy.attributes.Value) obj;
+ io.opentdf.platform.policy.Value other = (io.opentdf.platform.policy.Value) obj;
if (!getId()
.equals(other.getId())) return false;
@@ -502,6 +571,8 @@ public boolean equals(final java.lang.Object obj) {
if (!getActive()
.equals(other.getActive())) return false;
}
+ if (!getSubjectMappingsList()
+ .equals(other.getSubjectMappingsList())) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
@@ -540,6 +611,10 @@ public int hashCode() {
hash = (37 * hash) + ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + getActive().hashCode();
}
+ if (getSubjectMappingsCount() > 0) {
+ hash = (37 * hash) + SUBJECT_MAPPINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getSubjectMappingsList().hashCode();
+ }
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
@@ -549,44 +624,44 @@ public int hashCode() {
return hash;
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -594,26 +669,26 @@ public static io.opentdf.platform.policy.attributes.Value parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.Value parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Value parseDelimitedFrom(
+ public static io.opentdf.platform.policy.Value 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 io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.Value parseFrom(
+ public static io.opentdf.platform.policy.Value parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -626,7 +701,7 @@ public static io.opentdf.platform.policy.attributes.Value parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.attributes.Value prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.Value prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -642,26 +717,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code policy.attributes.Value}
+ * Protobuf type {@code policy.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
public boolean hasAttribute() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return The attribute.
*/
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
+ public io.opentdf.platform.policy.Attribute getAttribute() {
if (attributeBuilder_ == null) {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
- public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder setAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1124,10 +1255,10 @@ public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute valu
return this;
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
public Builder setAttribute(
- io.opentdf.platform.policy.attributes.Attribute.Builder builderForValue) {
+ io.opentdf.platform.policy.Attribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
} else {
@@ -1138,13 +1269,13 @@ public Builder setAttribute(
return this;
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
- public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder mergeAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
attribute_ != null &&
- attribute_ != io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance()) {
+ attribute_ != io.opentdf.platform.policy.Attribute.getDefaultInstance()) {
getAttributeBuilder().mergeFrom(value);
} else {
attribute_ = value;
@@ -1159,7 +1290,7 @@ public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute va
return this;
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
public Builder clearAttribute() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1172,33 +1303,33 @@ public Builder clearAttribute() {
return this;
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.Attribute.Builder getAttributeBuilder() {
+ public io.opentdf.platform.policy.Attribute.Builder getAttributeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
- io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
}
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>(
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
@@ -1967,6 +2098,318 @@ public com.google.protobuf.BoolValueOrBuilder getActiveOrBuilder() {
return activeBuilder_;
}
+ private java.util.List
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public java.util.List
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public int getSubjectMappingsCount() {
+ if (subjectMappingsBuilder_ == null) {
+ return subjectMappings_.size();
+ } else {
+ return subjectMappingsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public io.opentdf.platform.policy.SubjectMapping getSubjectMappings(int index) {
+ if (subjectMappingsBuilder_ == null) {
+ return subjectMappings_.get(index);
+ } else {
+ return subjectMappingsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder setSubjectMappings(
+ int index, io.opentdf.platform.policy.SubjectMapping value) {
+ if (subjectMappingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.set(index, value);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder setSubjectMappings(
+ int index, io.opentdf.platform.policy.SubjectMapping.Builder builderForValue) {
+ if (subjectMappingsBuilder_ == null) {
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder addSubjectMappings(io.opentdf.platform.policy.SubjectMapping value) {
+ if (subjectMappingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.add(value);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder addSubjectMappings(
+ int index, io.opentdf.platform.policy.SubjectMapping value) {
+ if (subjectMappingsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.add(index, value);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder addSubjectMappings(
+ io.opentdf.platform.policy.SubjectMapping.Builder builderForValue) {
+ if (subjectMappingsBuilder_ == null) {
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.add(builderForValue.build());
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder addSubjectMappings(
+ int index, io.opentdf.platform.policy.SubjectMapping.Builder builderForValue) {
+ if (subjectMappingsBuilder_ == null) {
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder addAllSubjectMappings(
+ java.lang.Iterable extends io.opentdf.platform.policy.SubjectMapping> values) {
+ if (subjectMappingsBuilder_ == null) {
+ ensureSubjectMappingsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, subjectMappings_);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder clearSubjectMappings() {
+ if (subjectMappingsBuilder_ == null) {
+ subjectMappings_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public Builder removeSubjectMappings(int index) {
+ if (subjectMappingsBuilder_ == null) {
+ ensureSubjectMappingsIsMutable();
+ subjectMappings_.remove(index);
+ onChanged();
+ } else {
+ subjectMappingsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public io.opentdf.platform.policy.SubjectMapping.Builder getSubjectMappingsBuilder(
+ int index) {
+ return getSubjectMappingsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public io.opentdf.platform.policy.SubjectMappingOrBuilder getSubjectMappingsOrBuilder(
+ int index) {
+ if (subjectMappingsBuilder_ == null) {
+ return subjectMappings_.get(index); } else {
+ return subjectMappingsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public java.util.List extends io.opentdf.platform.policy.SubjectMappingOrBuilder>
+ getSubjectMappingsOrBuilderList() {
+ if (subjectMappingsBuilder_ != null) {
+ return subjectMappingsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(subjectMappings_);
+ }
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public io.opentdf.platform.policy.SubjectMapping.Builder addSubjectMappingsBuilder() {
+ return getSubjectMappingsFieldBuilder().addBuilder(
+ io.opentdf.platform.policy.SubjectMapping.getDefaultInstance());
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public io.opentdf.platform.policy.SubjectMapping.Builder addSubjectMappingsBuilder(
+ int index) {
+ return getSubjectMappingsFieldBuilder().addBuilder(
+ index, io.opentdf.platform.policy.SubjectMapping.getDefaultInstance());
+ }
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ public java.util.List
@@ -2012,7 +2455,7 @@ public Builder setMetadata(io.opentdf.platform.common.Metadata value) {
} else {
metadataBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2030,7 +2473,7 @@ public Builder setMetadata(
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2043,7 +2486,7 @@ public Builder setMetadata(
*/
public Builder mergeMetadata(io.opentdf.platform.common.Metadata value) {
if (metadataBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0) &&
+ if (((bitField0_ & 0x00000100) != 0) &&
metadata_ != null &&
metadata_ != io.opentdf.platform.common.Metadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
@@ -2054,7 +2497,7 @@ public Builder mergeMetadata(io.opentdf.platform.common.Metadata value) {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
return this;
@@ -2067,7 +2510,7 @@ public Builder mergeMetadata(io.opentdf.platform.common.Metadata value) {
*
.common.Metadata metadata = 100 [json_name = "metadata"];
*/
public Builder clearMetadata() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
@@ -2084,7 +2527,7 @@ public Builder clearMetadata() {
* .common.Metadata metadata = 100 [json_name = "metadata"];
*/
public io.opentdf.platform.common.Metadata.Builder getMetadataBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
@@ -2136,16 +2579,16 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:policy.attributes.Value)
+ // @@protoc_insertion_point(builder_scope:policy.Value)
}
- // @@protoc_insertion_point(class_scope:policy.attributes.Value)
- private static final io.opentdf.platform.policy.attributes.Value DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.Value)
+ private static final io.opentdf.platform.policy.Value DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.attributes.Value();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.Value();
}
- public static io.opentdf.platform.policy.attributes.Value getDefaultInstance() {
+ public static io.opentdf.platform.policy.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@@ -2181,7 +2624,7 @@ public com.google.protobuf.Parser.policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
boolean hasAttribute();
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
* @return The attribute.
*/
- io.opentdf.platform.policy.attributes.Attribute getAttribute();
+ io.opentdf.platform.policy.Attribute getAttribute();
/**
- * .policy.attributes.Attribute attribute = 2 [json_name = "attribute"];
+ * .policy.Attribute attribute = 2 [json_name = "attribute"];
*/
- io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder();
+ io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder();
/**
* string value = 3 [json_name = "value"];
@@ -179,6 +179,50 @@ io.opentdf.platform.kasregistry.KeyAccessServerOrBuilder getGrantsOrBuilder(
*/
com.google.protobuf.BoolValueOrBuilder getActiveOrBuilder();
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ java.util.List
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ io.opentdf.platform.policy.SubjectMapping getSubjectMappings(int index);
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ int getSubjectMappingsCount();
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ java.util.List extends io.opentdf.platform.policy.SubjectMappingOrBuilder>
+ getSubjectMappingsOrBuilderList();
+ /**
+ *
+ * subject mapping
+ *
+ *
+ * repeated .policy.SubjectMapping subject_mappings = 8 [json_name = "subjectMappings"];
+ */
+ io.opentdf.platform.policy.SubjectMappingOrBuilder getSubjectMappingsOrBuilder(
+ int index);
+
/**
*
* Common metadata
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeAndValue.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeAndValue.java
deleted file mode 100644
index 93d3445..0000000
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributeAndValue.java
+++ /dev/null
@@ -1,784 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: policy/attributes/attributes.proto
-
-// Protobuf Java Version: 3.25.3
-package io.opentdf.platform.policy.attributes;
-
-/**
- * Protobuf type {@code policy.attributes.AttributeAndValue}
- */
-public final class AttributeAndValue extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.attributes.AttributeAndValue)
- AttributeAndValueOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AttributeAndValue.newBuilder() to construct.
- private AttributeAndValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AttributeAndValue() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AttributeAndValue();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_AttributeAndValue_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_AttributeAndValue_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.attributes.AttributeAndValue.class, io.opentdf.platform.policy.attributes.AttributeAndValue.Builder.class);
- }
-
- private int bitField0_;
- public static final int ATTRIBUTE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
- /**
- *
.policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return Whether the attribute field is set.
- */
- @java.lang.Override
- public boolean hasAttribute() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return The attribute.
- */
- @java.lang.Override
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- @java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
- }
-
- public static final int VALUE_FIELD_NUMBER = 2;
- private io.opentdf.platform.policy.attributes.Value value_;
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return Whether the value field is set.
- */
- @java.lang.Override
- public boolean hasValue() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return The value.
- */
- @java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getValue() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- @java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getAttribute());
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(2, getValue());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAttribute());
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getValue());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.opentdf.platform.policy.attributes.AttributeAndValue)) {
- return super.equals(obj);
- }
- io.opentdf.platform.policy.attributes.AttributeAndValue other = (io.opentdf.platform.policy.attributes.AttributeAndValue) obj;
-
- if (hasAttribute() != other.hasAttribute()) return false;
- if (hasAttribute()) {
- if (!getAttribute()
- .equals(other.getAttribute())) return false;
- }
- if (hasValue() != other.hasValue()) return false;
- if (hasValue()) {
- if (!getValue()
- .equals(other.getValue())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAttribute()) {
- hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
- hash = (53 * hash) + getAttribute().hashCode();
- }
- if (hasValue()) {
- hash = (37 * hash) + VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getValue().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue 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 io.opentdf.platform.policy.attributes.AttributeAndValue parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static io.opentdf.platform.policy.attributes.AttributeAndValue 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 io.opentdf.platform.policy.attributes.AttributeAndValue parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.opentdf.platform.policy.attributes.AttributeAndValue 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(io.opentdf.platform.policy.attributes.AttributeAndValue 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 policy.attributes.AttributeAndValue}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return Whether the attribute field is set.
- */
- public boolean hasAttribute() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return The attribute.
- */
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- if (attributeBuilder_ == null) {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
- } else {
- return attributeBuilder_.getMessage();
- }
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
- if (attributeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- attribute_ = value;
- } else {
- attributeBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public Builder setAttribute(
- io.opentdf.platform.policy.attributes.Attribute.Builder builderForValue) {
- if (attributeBuilder_ == null) {
- attribute_ = builderForValue.build();
- } else {
- attributeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
- if (attributeBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- attribute_ != null &&
- attribute_ != io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance()) {
- getAttributeBuilder().mergeFrom(value);
- } else {
- attribute_ = value;
- }
- } else {
- attributeBuilder_.mergeFrom(value);
- }
- if (attribute_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
- return this;
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public Builder clearAttribute() {
- bitField0_ = (bitField0_ & ~0x00000001);
- attribute_ = null;
- if (attributeBuilder_ != null) {
- attributeBuilder_.dispose();
- attributeBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public io.opentdf.platform.policy.attributes.Attribute.Builder getAttributeBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getAttributeFieldBuilder().getBuilder();
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- if (attributeBuilder_ != null) {
- return attributeBuilder_.getMessageOrBuilder();
- } else {
- return attribute_ == null ?
- io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
- }
- }
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>
- getAttributeFieldBuilder() {
- if (attributeBuilder_ == null) {
- attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>(
- getAttribute(),
- getParentForChildren(),
- isClean());
- attribute_ = null;
- }
- return attributeBuilder_;
- }
-
- private io.opentdf.platform.policy.attributes.Value value_;
- private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder> valueBuilder_;
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return Whether the value field is set.
- */
- public boolean hasValue() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return The value.
- */
- public io.opentdf.platform.policy.attributes.Value getValue() {
- if (valueBuilder_ == null) {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
- } else {
- return valueBuilder_.getMessage();
- }
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
- if (valueBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- value_ = value;
- } else {
- valueBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public Builder setValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
- if (valueBuilder_ == null) {
- value_ = builderForValue.build();
- } else {
- valueBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
- if (valueBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- value_ != null &&
- value_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
- getValueBuilder().mergeFrom(value);
- } else {
- value_ = value;
- }
- } else {
- valueBuilder_.mergeFrom(value);
- }
- if (value_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
- return this;
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000002);
- value_ = null;
- if (valueBuilder_ != null) {
- valueBuilder_.dispose();
- valueBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public io.opentdf.platform.policy.attributes.Value.Builder getValueBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getValueFieldBuilder().getBuilder();
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
- if (valueBuilder_ != null) {
- return valueBuilder_.getMessageOrBuilder();
- } else {
- return value_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
- }
- }
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
- getValueFieldBuilder() {
- if (valueBuilder_ == null) {
- valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
- getValue(),
- getParentForChildren(),
- isClean());
- value_ = null;
- }
- return valueBuilder_;
- }
- @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:policy.attributes.AttributeAndValue)
- }
-
- // @@protoc_insertion_point(class_scope:policy.attributes.AttributeAndValue)
- private static final io.opentdf.platform.policy.attributes.AttributeAndValue DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.attributes.AttributeAndValue();
- }
-
- public static io.opentdf.platform.policy.attributes.AttributeAndValue getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return Whether the attribute field is set.
- */
- boolean hasAttribute();
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- * @return The attribute.
- */
- io.opentdf.platform.policy.attributes.Attribute getAttribute();
- /**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
- */
- io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder();
-
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return Whether the value field is set.
- */
- boolean hasValue();
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- * @return The value.
- */
- io.opentdf.platform.policy.attributes.Value getValue();
- /**
- * .policy.attributes.Value value = 2 [json_name = "value"];
- */
- io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder();
-}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesProto.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesProto.java
index 564afb2..b651b09 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesProto.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesProto.java
@@ -15,21 +15,6 @@ public static void registerAllExtensions(
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_Attribute_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_Attribute_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_Value_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_Value_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_AttributeAndValue_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_AttributeAndValue_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_policy_attributes_AttributeKeyAccessServer_descriptor;
static final
@@ -60,21 +45,6 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_policy_attributes_GetAttributeResponse_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_GetAttributesByValueFqnsRequest_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_GetAttributesByValueFqnsRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_FqnAttributeValuesEntry_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_FqnAttributeValuesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_policy_attributes_CreateAttributeRequest_descriptor;
static final
@@ -155,6 +125,26 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_policy_attributes_DeactivateAttributeValueResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_FqnAttributeValuesEntry_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_FqnAttributeValuesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_policy_attributes_AssignKeyAccessServerToAttributeRequest_descriptor;
static final
@@ -207,198 +197,173 @@ public static void registerAllExtensions(
"\n\"policy/attributes/attributes.proto\022\021po" +
"licy.attributes\032\033buf/validate/validate.p" +
"roto\032\023common/common.proto\032\034google/api/an" +
- "notations.proto\032\036google/protobuf/wrapper" +
- "s.proto\032,kasregistry/key_access_server_r" +
- "egistry.proto\032\"policy/namespaces/namespa" +
- "ces.proto\"\222\003\n\tAttribute\022\016\n\002id\030\001 \001(\tR\002id\022" +
- ":\n\tnamespace\030\002 \001(\0132\034.policy.namespaces.N" +
- "amespaceR\tnamespace\022\022\n\004name\030\003 \001(\tR\004name\022" +
- "I\n\004rule\030\004 \001(\0162(.policy.attributes.Attrib" +
- "uteRuleTypeEnumB\013\272H\010\202\001\002\020\001\310\001\001R\004rule\0220\n\006va" +
- "lues\030\005 \003(\0132\030.policy.attributes.ValueR\006va" +
- "lues\0224\n\006grants\030\006 \003(\0132\034.kasregistry.KeyAc" +
- "cessServerR\006grants\022\020\n\003fqn\030\007 \001(\tR\003fqn\0222\n\006" +
- "active\030\010 \001(\0132\032.google.protobuf.BoolValue" +
- "R\006active\022,\n\010metadata\030d \001(\0132\020.common.Meta" +
- "dataR\010metadata\"\255\002\n\005Value\022\016\n\002id\030\001 \001(\tR\002id" +
- "\022:\n\tattribute\030\002 \001(\0132\034.policy.attributes." +
- "AttributeR\tattribute\022\024\n\005value\030\003 \001(\tR\005val" +
- "ue\022\030\n\007members\030\004 \003(\tR\007members\0224\n\006grants\030\005" +
- " \003(\0132\034.kasregistry.KeyAccessServerR\006gran" +
- "ts\022\020\n\003fqn\030\006 \001(\tR\003fqn\0222\n\006active\030\007 \001(\0132\032.g" +
- "oogle.protobuf.BoolValueR\006active\022,\n\010meta" +
- "data\030d \001(\0132\020.common.MetadataR\010metadata\"\177" +
- "\n\021AttributeAndValue\022:\n\tattribute\030\001 \001(\0132\034" +
- ".policy.attributes.AttributeR\tattribute\022" +
- ".\n\005value\030\002 \001(\0132\030.policy.attributes.Value" +
- "R\005value\"n\n\030AttributeKeyAccessServer\022!\n\014a" +
- "ttribute_id\030\001 \001(\tR\013attributeId\022/\n\024key_ac" +
- "cess_server_id\030\002 \001(\tR\021keyAccessServerId\"" +
- "b\n\024ValueKeyAccessServer\022\031\n\010value_id\030\001 \001(" +
- "\tR\007valueId\022/\n\024key_access_server_id\030\002 \001(\t" +
- "R\021keyAccessServerId\"F\n\025ListAttributesReq" +
- "uest\022-\n\005state\030\001 \001(\0162\027.common.ActiveState" +
- "EnumR\005state\"V\n\026ListAttributesResponse\022<\n" +
- "\nattributes\030\001 \003(\0132\034.policy.attributes.At" +
- "tributeR\nattributes\"-\n\023GetAttributeReque" +
- "st\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\"R\n\024GetAttribu" +
- "teResponse\022:\n\tattribute\030\001 \001(\0132\034.policy.a" +
- "ttributes.AttributeR\tattribute\"=\n\037GetAtt" +
- "ributesByValueFqnsRequest\022\032\n\004fqns\030\001 \003(\tB" +
- "\006\272H\003\310\001\001R\004fqns\"\216\002\n GetAttributesByValueFq" +
- "nsResponse\022}\n\024fqn_attribute_values\030\001 \003(\013" +
- "2K.policy.attributes.GetAttributesByValu" +
- "eFqnsResponse.FqnAttributeValuesEntryR\022f" +
- "qnAttributeValues\032k\n\027FqnAttributeValuesE" +
- "ntry\022\020\n\003key\030\001 \001(\tR\003key\022:\n\005value\030\002 \001(\0132$." +
- "policy.attributes.AttributeAndValueR\005val" +
- "ue:\0028\001\"\337\001\n\026CreateAttributeRequest\022)\n\014nam" +
- "espace_id\030\001 \001(\tB\006\272H\003\310\001\001R\013namespaceId\022\032\n\004" +
- "name\030\002 \001(\tB\006\272H\003\310\001\001R\004name\022I\n\004rule\030\003 \001(\0162(" +
- ".policy.attributes.AttributeRuleTypeEnum" +
- "B\013\272H\010\202\001\002\020\001\310\001\001R\004rule\0223\n\010metadata\030d \001(\0132\027." +
- "common.MetadataMutableR\010metadata\"U\n\027Crea" +
- "teAttributeResponse\022:\n\tattribute\030\001 \001(\0132\034" +
- ".policy.attributes.AttributeR\tattribute\"" +
- "\273\001\n\026UpdateAttributeRequest\022\026\n\002id\030\001 \001(\tB\006" +
- "\272H\003\310\001\001R\002id\0223\n\010metadata\030d \001(\0132\027.common.Me" +
- "tadataMutableR\010metadata\022T\n\030metadata_upda" +
- "te_behavior\030e \001(\0162\032.common.MetadataUpdat" +
- "eEnumR\026metadataUpdateBehavior\"U\n\027UpdateA" +
- "ttributeResponse\022:\n\tattribute\030\001 \001(\0132\034.po" +
- "licy.attributes.AttributeR\tattribute\"4\n\032" +
- "DeactivateAttributeRequest\022\026\n\002id\030\001 \001(\tB\006" +
- "\272H\003\310\001\001R\002id\"Y\n\033DeactivateAttributeRespons" +
- "e\022:\n\tattribute\030\001 \001(\0132\034.policy.attributes" +
- ".AttributeR\tattribute\"2\n\030GetAttributeVal" +
- "ueRequest\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\"K\n\031Get" +
- "AttributeValueResponse\022.\n\005value\030\001 \001(\0132\030." +
- "policy.attributes.ValueR\005value\"v\n\032ListAt" +
- "tributeValuesRequest\022)\n\014attribute_id\030\001 \001" +
- "(\tB\006\272H\003\310\001\001R\013attributeId\022-\n\005state\030\002 \001(\0162\027" +
- ".common.ActiveStateEnumR\005state\"O\n\033ListAt" +
- "tributeValuesResponse\0220\n\006values\030\001 \003(\0132\030." +
- "policy.attributes.ValueR\006values\"\265\001\n\033Crea" +
- "teAttributeValueRequest\022)\n\014attribute_id\030" +
- "\001 \001(\tB\006\272H\003\310\001\001R\013attributeId\022\034\n\005value\030\002 \001(" +
- "\tB\006\272H\003\310\001\001R\005value\022\030\n\007members\030\003 \003(\tR\007membe" +
- "rs\0223\n\010metadata\030d \001(\0132\027.common.MetadataMu" +
- "tableR\010metadata\"N\n\034CreateAttributeValueR" +
- "esponse\022.\n\005value\030\001 \001(\0132\030.policy.attribut" +
- "es.ValueR\005value\"\332\001\n\033UpdateAttributeValue" +
- "Request\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\022\030\n\007membe" +
- "rs\030\004 \003(\tR\007members\0223\n\010metadata\030d \001(\0132\027.co" +
- "mmon.MetadataMutableR\010metadata\022T\n\030metada" +
- "ta_update_behavior\030e \001(\0162\032.common.Metada" +
- "taUpdateEnumR\026metadataUpdateBehavior\"N\n\034" +
- "UpdateAttributeValueResponse\022.\n\005value\030\001 " +
- "\001(\0132\030.policy.attributes.ValueR\005value\"9\n\037" +
- "DeactivateAttributeValueRequest\022\026\n\002id\030\001 " +
- "\001(\tB\006\272H\003\310\001\001R\002id\"R\n DeactivateAttributeVa" +
- "lueResponse\022.\n\005value\030\001 \001(\0132\030.policy.attr" +
- "ibutes.ValueR\005value\"\225\001\n\'AssignKeyAccessS" +
- "erverToAttributeRequest\022j\n\033attribute_key" +
- "_access_server\030\001 \001(\0132+.policy.attributes" +
- ".AttributeKeyAccessServerR\030attributeKeyA" +
- "ccessServer\"\226\001\n(AssignKeyAccessServerToA" +
- "ttributeResponse\022j\n\033attribute_key_access" +
- "_server\030\001 \001(\0132+.policy.attributes.Attrib" +
- "uteKeyAccessServerR\030attributeKeyAccessSe" +
- "rver\"\227\001\n)RemoveKeyAccessServerFromAttrib" +
- "uteRequest\022j\n\033attribute_key_access_serve" +
- "r\030\001 \001(\0132+.policy.attributes.AttributeKey" +
- "AccessServerR\030attributeKeyAccessServer\"\230" +
- "\001\n*RemoveKeyAccessServerFromAttributeRes" +
- "ponse\022j\n\033attribute_key_access_server\030\001 \001" +
- "(\0132+.policy.attributes.AttributeKeyAcces" +
- "sServerR\030attributeKeyAccessServer\"\205\001\n#As" +
- "signKeyAccessServerToValueRequest\022^\n\027val" +
+ "notations.proto\032\024policy/objects.proto\032\026p" +
+ "olicy/selectors.proto\"n\n\030AttributeKeyAcc" +
+ "essServer\022!\n\014attribute_id\030\001 \001(\tR\013attribu" +
+ "teId\022/\n\024key_access_server_id\030\002 \001(\tR\021keyA" +
+ "ccessServerId\"b\n\024ValueKeyAccessServer\022\031\n" +
+ "\010value_id\030\001 \001(\tR\007valueId\022/\n\024key_access_s" +
+ "erver_id\030\002 \001(\tR\021keyAccessServerId\"F\n\025Lis" +
+ "tAttributesRequest\022-\n\005state\030\001 \001(\0162\027.comm" +
+ "on.ActiveStateEnumR\005state\"K\n\026ListAttribu" +
+ "tesResponse\0221\n\nattributes\030\001 \003(\0132\021.policy" +
+ ".AttributeR\nattributes\"-\n\023GetAttributeRe" +
+ "quest\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\"G\n\024GetAttr" +
+ "ibuteResponse\022/\n\tattribute\030\001 \001(\0132\021.polic" +
+ "y.AttributeR\tattribute\"\324\001\n\026CreateAttribu" +
+ "teRequest\022)\n\014namespace_id\030\001 \001(\tB\006\272H\003\310\001\001R" +
+ "\013namespaceId\022\032\n\004name\030\002 \001(\tB\006\272H\003\310\001\001R\004name" +
+ "\022>\n\004rule\030\003 \001(\0162\035.policy.AttributeRuleTyp" +
+ "eEnumB\013\272H\010\202\001\002\020\001\310\001\001R\004rule\0223\n\010metadata\030d \001" +
+ "(\0132\027.common.MetadataMutableR\010metadata\"J\n" +
+ "\027CreateAttributeResponse\022/\n\tattribute\030\001 " +
+ "\001(\0132\021.policy.AttributeR\tattribute\"\273\001\n\026Up" +
+ "dateAttributeRequest\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001" +
+ "R\002id\0223\n\010metadata\030d \001(\0132\027.common.Metadata" +
+ "MutableR\010metadata\022T\n\030metadata_update_beh" +
+ "avior\030e \001(\0162\032.common.MetadataUpdateEnumR" +
+ "\026metadataUpdateBehavior\"J\n\027UpdateAttribu" +
+ "teResponse\022/\n\tattribute\030\001 \001(\0132\021.policy.A" +
+ "ttributeR\tattribute\"4\n\032DeactivateAttribu" +
+ "teRequest\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\"N\n\033Dea" +
+ "ctivateAttributeResponse\022/\n\tattribute\030\001 " +
+ "\001(\0132\021.policy.AttributeR\tattribute\"2\n\030Get" +
+ "AttributeValueRequest\022\026\n\002id\030\001 \001(\tB\006\272H\003\310\001" +
+ "\001R\002id\"@\n\031GetAttributeValueResponse\022#\n\005va" +
+ "lue\030\001 \001(\0132\r.policy.ValueR\005value\"v\n\032ListA" +
+ "ttributeValuesRequest\022)\n\014attribute_id\030\001 " +
+ "\001(\tB\006\272H\003\310\001\001R\013attributeId\022-\n\005state\030\002 \001(\0162" +
+ "\027.common.ActiveStateEnumR\005state\"D\n\033ListA" +
+ "ttributeValuesResponse\022%\n\006values\030\001 \003(\0132\r" +
+ ".policy.ValueR\006values\"\265\001\n\033CreateAttribut" +
+ "eValueRequest\022)\n\014attribute_id\030\001 \001(\tB\006\272H\003" +
+ "\310\001\001R\013attributeId\022\034\n\005value\030\002 \001(\tB\006\272H\003\310\001\001R" +
+ "\005value\022\030\n\007members\030\003 \003(\tR\007members\0223\n\010meta" +
+ "data\030d \001(\0132\027.common.MetadataMutableR\010met" +
+ "adata\"C\n\034CreateAttributeValueResponse\022#\n" +
+ "\005value\030\001 \001(\0132\r.policy.ValueR\005value\"\332\001\n\033U" +
+ "pdateAttributeValueRequest\022\026\n\002id\030\001 \001(\tB\006" +
+ "\272H\003\310\001\001R\002id\022\030\n\007members\030\004 \003(\tR\007members\0223\n\010" +
+ "metadata\030d \001(\0132\027.common.MetadataMutableR" +
+ "\010metadata\022T\n\030metadata_update_behavior\030e " +
+ "\001(\0162\032.common.MetadataUpdateEnumR\026metadat" +
+ "aUpdateBehavior\"C\n\034UpdateAttributeValueR" +
+ "esponse\022#\n\005value\030\001 \001(\0132\r.policy.ValueR\005v" +
+ "alue\"9\n\037DeactivateAttributeValueRequest\022" +
+ "\026\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\"G\n DeactivateAtt" +
+ "ributeValueResponse\022#\n\005value\030\001 \001(\0132\r.pol" +
+ "icy.ValueR\005value\"\204\001\n\037GetAttributeValuesB" +
+ "yFqnsRequest\022\032\n\004fqns\030\001 \003(\tB\006\272H\003\310\001\001R\004fqns" +
+ "\022E\n\nwith_value\030\002 \001(\0132\036.policy.AttributeV" +
+ "alueSelectorB\006\272H\003\310\001\001R\twithValue\"\233\003\n GetA" +
+ "ttributeValuesByFqnsResponse\022}\n\024fqn_attr" +
+ "ibute_values\030\001 \003(\0132K.policy.attributes.G" +
+ "etAttributeValuesByFqnsResponse.FqnAttri" +
+ "buteValuesEntryR\022fqnAttributeValues\032i\n\021A" +
+ "ttributeAndValue\022/\n\tattribute\030\001 \001(\0132\021.po" +
+ "licy.AttributeR\tattribute\022#\n\005value\030\002 \001(\013" +
+ "2\r.policy.ValueR\005value\032\214\001\n\027FqnAttributeV" +
+ "aluesEntry\022\020\n\003key\030\001 \001(\tR\003key\022[\n\005value\030\002 " +
+ "\001(\0132E.policy.attributes.GetAttributeValu" +
+ "esByFqnsResponse.AttributeAndValueR\005valu" +
+ "e:\0028\001\"\225\001\n\'AssignKeyAccessServerToAttribu" +
+ "teRequest\022j\n\033attribute_key_access_server" +
+ "\030\001 \001(\0132+.policy.attributes.AttributeKeyA" +
+ "ccessServerR\030attributeKeyAccessServer\"\226\001" +
+ "\n(AssignKeyAccessServerToAttributeRespon" +
+ "se\022j\n\033attribute_key_access_server\030\001 \001(\0132" +
+ "+.policy.attributes.AttributeKeyAccessSe" +
+ "rverR\030attributeKeyAccessServer\"\227\001\n)Remov" +
+ "eKeyAccessServerFromAttributeRequest\022j\n\033" +
+ "attribute_key_access_server\030\001 \001(\0132+.poli" +
+ "cy.attributes.AttributeKeyAccessServerR\030" +
+ "attributeKeyAccessServer\"\230\001\n*RemoveKeyAc" +
+ "cessServerFromAttributeResponse\022j\n\033attri" +
+ "bute_key_access_server\030\001 \001(\0132+.policy.at" +
+ "tributes.AttributeKeyAccessServerR\030attri" +
+ "buteKeyAccessServer\"\205\001\n#AssignKeyAccessS" +
+ "erverToValueRequest\022^\n\027value_key_access_" +
+ "server\030\001 \001(\0132\'.policy.attributes.ValueKe" +
+ "yAccessServerR\024valueKeyAccessServer\"\206\001\n$" +
+ "AssignKeyAccessServerToValueResponse\022^\n\027" +
+ "value_key_access_server\030\001 \001(\0132\'.policy.a" +
+ "ttributes.ValueKeyAccessServerR\024valueKey" +
+ "AccessServer\"\207\001\n%RemoveKeyAccessServerFr" +
+ "omValueRequest\022^\n\027value_key_access_serve" +
+ "r\030\001 \001(\0132\'.policy.attributes.ValueKeyAcce" +
+ "ssServerR\024valueKeyAccessServer\"\210\001\n&Remov" +
+ "eKeyAccessServerFromValueResponse\022^\n\027val" +
"ue_key_access_server\030\001 \001(\0132\'.policy.attr" +
"ibutes.ValueKeyAccessServerR\024valueKeyAcc" +
- "essServer\"\206\001\n$AssignKeyAccessServerToVal" +
- "ueResponse\022^\n\027value_key_access_server\030\001 " +
- "\001(\0132\'.policy.attributes.ValueKeyAccessSe" +
- "rverR\024valueKeyAccessServer\"\207\001\n%RemoveKey" +
- "AccessServerFromValueRequest\022^\n\027value_ke" +
- "y_access_server\030\001 \001(\0132\'.policy.attribute" +
- "s.ValueKeyAccessServerR\024valueKeyAccessSe" +
- "rver\"\210\001\n&RemoveKeyAccessServerFromValueR" +
- "esponse\022^\n\027value_key_access_server\030\001 \001(\013" +
- "2\'.policy.attributes.ValueKeyAccessServe" +
- "rR\024valueKeyAccessServer*\263\001\n\025AttributeRul" +
- "eTypeEnum\022(\n$ATTRIBUTE_RULE_TYPE_ENUM_UN" +
- "SPECIFIED\020\000\022#\n\037ATTRIBUTE_RULE_TYPE_ENUM_" +
- "ALL_OF\020\001\022#\n\037ATTRIBUTE_RULE_TYPE_ENUM_ANY" +
- "_OF\020\002\022&\n\"ATTRIBUTE_RULE_TYPE_ENUM_HIERAR" +
- "CHY\020\0032\307\023\n\021AttributesService\022g\n\016ListAttri" +
- "butes\022(.policy.attributes.ListAttributes" +
- "Request\032).policy.attributes.ListAttribut" +
- "esResponse\"\000\022v\n\023ListAttributeValues\022-.po" +
- "licy.attributes.ListAttributeValuesReque" +
- "st\032..policy.attributes.ListAttributeValu" +
- "esResponse\"\000\022y\n\014GetAttribute\022&.policy.at" +
- "tributes.GetAttributeRequest\032\'.policy.at" +
- "tributes.GetAttributeResponse\"\030\202\323\344\223\002\022\022\020/" +
- "attributes/{id}\022\236\001\n\030GetAttributesByValue" +
- "Fqns\0222.policy.attributes.GetAttributesBy" +
- "ValueFqnsRequest\0323.policy.attributes.Get" +
- "AttributesByValueFqnsResponse\"\031\202\323\344\223\002\023\022\021/" +
- "attributes/*/fqn\022\200\001\n\017CreateAttribute\022).p" +
- "olicy.attributes.CreateAttributeRequest\032" +
- "*.policy.attributes.CreateAttributeRespo" +
- "nse\"\026\202\323\344\223\002\020\"\013/attributes:\001*\022\205\001\n\017UpdateAt" +
- "tribute\022).policy.attributes.UpdateAttrib" +
- "uteRequest\032*.policy.attributes.UpdateAtt" +
- "ributeResponse\"\033\202\323\344\223\002\0252\020/attributes/{id}" +
- ":\001*\022\216\001\n\023DeactivateAttribute\022-.policy.att" +
- "ributes.DeactivateAttributeRequest\032..pol" +
- "icy.attributes.DeactivateAttributeRespon" +
- "se\"\030\202\323\344\223\002\022*\020/attributes/{id}\022\221\001\n\021GetAttr" +
- "ibuteValue\022+.policy.attributes.GetAttrib" +
- "uteValueRequest\032,.policy.attributes.GetA" +
- "ttributeValueResponse\"!\202\323\344\223\002\033\022\031/attribut" +
- "es/*/values/{id}\022\245\001\n\024CreateAttributeValu" +
- "e\022..policy.attributes.CreateAttributeVal" +
- "ueRequest\032/.policy.attributes.CreateAttr" +
- "ibuteValueResponse\",\202\323\344\223\002&\"!/attributes/" +
- "{attribute_id}/values:\001*\022\235\001\n\024UpdateAttri" +
- "buteValue\022..policy.attributes.UpdateAttr" +
- "ibuteValueRequest\032/.policy.attributes.Up" +
- "dateAttributeValueResponse\"$\202\323\344\223\002\0362\031/att" +
- "ributes/*/values/{id}:\001*\022\246\001\n\030DeactivateA" +
- "ttributeValue\0222.policy.attributes.Deacti" +
- "vateAttributeValueRequest\0323.policy.attri" +
- "butes.DeactivateAttributeValueResponse\"!" +
- "\202\323\344\223\002\033*\031/attributes/*/values/{id}\022\344\001\n As" +
- "signKeyAccessServerToAttribute\022:.policy." +
- "attributes.AssignKeyAccessServerToAttrib" +
- "uteRequest\032;.policy.attributes.AssignKey" +
- "AccessServerToAttributeResponse\"G\202\323\344\223\002A\"" +
- "\"/attributes/keyaccessserver/assign:\033att" +
- "ribute_key_access_server\022\352\001\n\"RemoveKeyAc" +
- "cessServerFromAttribute\022<.policy.attribu" +
- "tes.RemoveKeyAccessServerFromAttributeRe" +
- "quest\032=.policy.attributes.RemoveKeyAcces" +
- "sServerFromAttributeResponse\"G\202\323\344\223\002A\"\"/a" +
- "ttributes/keyaccessserver/remove:\033attrib" +
- "ute_key_access_server\022\333\001\n\034AssignKeyAcces" +
- "sServerToValue\0226.policy.attributes.Assig" +
- "nKeyAccessServerToValueRequest\0327.policy." +
- "attributes.AssignKeyAccessServerToValueR" +
- "esponse\"J\202\323\344\223\002D\")/attributes/values/keya" +
- "ccessserver/assign:\027value_key_access_ser" +
- "ver\022\341\001\n\036RemoveKeyAccessServerFromValue\0228" +
- ".policy.attributes.RemoveKeyAccessServer" +
- "FromValueRequest\0329.policy.attributes.Rem" +
- "oveKeyAccessServerFromValueResponse\"J\202\323\344" +
- "\223\002D\")/attributes/values/keyaccessserver/" +
- "remove:\027value_key_access_serverB\330\001\n%io.o" +
- "pentdf.platform.policy.attributesB\017Attri" +
- "butesProtoP\001Z9github.com/opentdf/platfor" +
- "m/protocol/go/policy/attributes\242\002\003PAX\252\002\021" +
- "Policy.Attributes\312\002\021Policy\\Attributes\342\002\035" +
- "Policy\\Attributes\\GPBMetadata\352\002\022Policy::" +
- "Attributesb\006proto3"
+ "essServer2\307\023\n\021AttributesService\022g\n\016ListA" +
+ "ttributes\022(.policy.attributes.ListAttrib" +
+ "utesRequest\032).policy.attributes.ListAttr" +
+ "ibutesResponse\"\000\022v\n\023ListAttributeValues\022" +
+ "-.policy.attributes.ListAttributeValuesR" +
+ "equest\032..policy.attributes.ListAttribute" +
+ "ValuesResponse\"\000\022y\n\014GetAttribute\022&.polic" +
+ "y.attributes.GetAttributeRequest\032\'.polic" +
+ "y.attributes.GetAttributeResponse\"\030\202\323\344\223\002" +
+ "\022\022\020/attributes/{id}\022\236\001\n\030GetAttributeValu" +
+ "esByFqns\0222.policy.attributes.GetAttribut" +
+ "eValuesByFqnsRequest\0323.policy.attributes" +
+ ".GetAttributeValuesByFqnsResponse\"\031\202\323\344\223\002" +
+ "\023\022\021/attributes/*/fqn\022\200\001\n\017CreateAttribute" +
+ "\022).policy.attributes.CreateAttributeRequ" +
+ "est\032*.policy.attributes.CreateAttributeR" +
+ "esponse\"\026\202\323\344\223\002\020\"\013/attributes:\001*\022\205\001\n\017Upda" +
+ "teAttribute\022).policy.attributes.UpdateAt" +
+ "tributeRequest\032*.policy.attributes.Updat" +
+ "eAttributeResponse\"\033\202\323\344\223\002\0252\020/attributes/" +
+ "{id}:\001*\022\216\001\n\023DeactivateAttribute\022-.policy" +
+ ".attributes.DeactivateAttributeRequest\032." +
+ ".policy.attributes.DeactivateAttributeRe" +
+ "sponse\"\030\202\323\344\223\002\022*\020/attributes/{id}\022\221\001\n\021Get" +
+ "AttributeValue\022+.policy.attributes.GetAt" +
+ "tributeValueRequest\032,.policy.attributes." +
+ "GetAttributeValueResponse\"!\202\323\344\223\002\033\022\031/attr" +
+ "ibutes/*/values/{id}\022\245\001\n\024CreateAttribute" +
+ "Value\022..policy.attributes.CreateAttribut" +
+ "eValueRequest\032/.policy.attributes.Create" +
+ "AttributeValueResponse\",\202\323\344\223\002&\"!/attribu" +
+ "tes/{attribute_id}/values:\001*\022\235\001\n\024UpdateA" +
+ "ttributeValue\022..policy.attributes.Update" +
+ "AttributeValueRequest\032/.policy.attribute" +
+ "s.UpdateAttributeValueResponse\"$\202\323\344\223\002\0362\031" +
+ "/attributes/*/values/{id}:\001*\022\246\001\n\030Deactiv" +
+ "ateAttributeValue\0222.policy.attributes.De" +
+ "activateAttributeValueRequest\0323.policy.a" +
+ "ttributes.DeactivateAttributeValueRespon" +
+ "se\"!\202\323\344\223\002\033*\031/attributes/*/values/{id}\022\344\001" +
+ "\n AssignKeyAccessServerToAttribute\022:.pol" +
+ "icy.attributes.AssignKeyAccessServerToAt" +
+ "tributeRequest\032;.policy.attributes.Assig" +
+ "nKeyAccessServerToAttributeResponse\"G\202\323\344" +
+ "\223\002A\"\"/attributes/keyaccessserver/assign:" +
+ "\033attribute_key_access_server\022\352\001\n\"RemoveK" +
+ "eyAccessServerFromAttribute\022<.policy.att" +
+ "ributes.RemoveKeyAccessServerFromAttribu" +
+ "teRequest\032=.policy.attributes.RemoveKeyA" +
+ "ccessServerFromAttributeResponse\"G\202\323\344\223\002A" +
+ "\"\"/attributes/keyaccessserver/remove:\033at" +
+ "tribute_key_access_server\022\333\001\n\034AssignKeyA" +
+ "ccessServerToValue\0226.policy.attributes.A" +
+ "ssignKeyAccessServerToValueRequest\0327.pol" +
+ "icy.attributes.AssignKeyAccessServerToVa" +
+ "lueResponse\"J\202\323\344\223\002D\")/attributes/values/" +
+ "keyaccessserver/assign:\027value_key_access" +
+ "_server\022\341\001\n\036RemoveKeyAccessServerFromVal" +
+ "ue\0228.policy.attributes.RemoveKeyAccessSe" +
+ "rverFromValueRequest\0329.policy.attributes" +
+ ".RemoveKeyAccessServerFromValueResponse\"" +
+ "J\202\323\344\223\002D\")/attributes/values/keyaccessser" +
+ "ver/remove:\027value_key_access_serverB\330\001\n%" +
+ "io.opentdf.platform.policy.attributesB\017A" +
+ "ttributesProtoP\001Z9github.com/opentdf/pla" +
+ "tform/protocol/go/policy/attributes\242\002\003PA" +
+ "X\252\002\021Policy.Attributes\312\002\021Policy\\Attribute" +
+ "s\342\002\035Policy\\Attributes\\GPBMetadata\352\002\022Poli" +
+ "cy::Attributesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -406,222 +371,209 @@ public static void registerAllExtensions(
build.buf.validate.ValidateProto.getDescriptor(),
io.opentdf.platform.common.CommonProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
- com.google.protobuf.WrappersProto.getDescriptor(),
- io.opentdf.platform.kasregistry.KeyAccessServerRegistryProto.getDescriptor(),
- io.opentdf.platform.policy.namespaces.NamespacesProto.getDescriptor(),
+ io.opentdf.platform.policy.ObjectsProto.getDescriptor(),
+ io.opentdf.platform.policy.SelectorsProto.getDescriptor(),
});
- internal_static_policy_attributes_Attribute_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_policy_attributes_Attribute_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_Attribute_descriptor,
- new java.lang.String[] { "Id", "Namespace", "Name", "Rule", "Values", "Grants", "Fqn", "Active", "Metadata", });
- internal_static_policy_attributes_Value_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_policy_attributes_Value_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_Value_descriptor,
- new java.lang.String[] { "Id", "Attribute", "Value", "Members", "Grants", "Fqn", "Active", "Metadata", });
- internal_static_policy_attributes_AttributeAndValue_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_policy_attributes_AttributeAndValue_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_AttributeAndValue_descriptor,
- new java.lang.String[] { "Attribute", "Value", });
internal_static_policy_attributes_AttributeKeyAccessServer_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(0);
internal_static_policy_attributes_AttributeKeyAccessServer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_AttributeKeyAccessServer_descriptor,
new java.lang.String[] { "AttributeId", "KeyAccessServerId", });
internal_static_policy_attributes_ValueKeyAccessServer_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(1);
internal_static_policy_attributes_ValueKeyAccessServer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_ValueKeyAccessServer_descriptor,
new java.lang.String[] { "ValueId", "KeyAccessServerId", });
internal_static_policy_attributes_ListAttributesRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(2);
internal_static_policy_attributes_ListAttributesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_ListAttributesRequest_descriptor,
new java.lang.String[] { "State", });
internal_static_policy_attributes_ListAttributesResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(3);
internal_static_policy_attributes_ListAttributesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_ListAttributesResponse_descriptor,
new java.lang.String[] { "Attributes", });
internal_static_policy_attributes_GetAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(4);
internal_static_policy_attributes_GetAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_GetAttributeRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_policy_attributes_GetAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(5);
internal_static_policy_attributes_GetAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_GetAttributeResponse_descriptor,
new java.lang.String[] { "Attribute", });
- internal_static_policy_attributes_GetAttributesByValueFqnsRequest_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_policy_attributes_GetAttributesByValueFqnsRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_GetAttributesByValueFqnsRequest_descriptor,
- new java.lang.String[] { "Fqns", });
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_descriptor,
- new java.lang.String[] { "FqnAttributeValues", });
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_FqnAttributeValuesEntry_descriptor =
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_descriptor.getNestedTypes().get(0);
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_FqnAttributeValuesEntry_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_policy_attributes_GetAttributesByValueFqnsResponse_FqnAttributeValuesEntry_descriptor,
- new java.lang.String[] { "Key", "Value", });
internal_static_policy_attributes_CreateAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(6);
internal_static_policy_attributes_CreateAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_CreateAttributeRequest_descriptor,
new java.lang.String[] { "NamespaceId", "Name", "Rule", "Metadata", });
internal_static_policy_attributes_CreateAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(7);
internal_static_policy_attributes_CreateAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_CreateAttributeResponse_descriptor,
new java.lang.String[] { "Attribute", });
internal_static_policy_attributes_UpdateAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(8);
internal_static_policy_attributes_UpdateAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_UpdateAttributeRequest_descriptor,
new java.lang.String[] { "Id", "Metadata", "MetadataUpdateBehavior", });
internal_static_policy_attributes_UpdateAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(9);
internal_static_policy_attributes_UpdateAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_UpdateAttributeResponse_descriptor,
new java.lang.String[] { "Attribute", });
internal_static_policy_attributes_DeactivateAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(10);
internal_static_policy_attributes_DeactivateAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_DeactivateAttributeRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_policy_attributes_DeactivateAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(11);
internal_static_policy_attributes_DeactivateAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_DeactivateAttributeResponse_descriptor,
new java.lang.String[] { "Attribute", });
internal_static_policy_attributes_GetAttributeValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(17);
+ getDescriptor().getMessageTypes().get(12);
internal_static_policy_attributes_GetAttributeValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_GetAttributeValueRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_policy_attributes_GetAttributeValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(18);
+ getDescriptor().getMessageTypes().get(13);
internal_static_policy_attributes_GetAttributeValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_GetAttributeValueResponse_descriptor,
new java.lang.String[] { "Value", });
internal_static_policy_attributes_ListAttributeValuesRequest_descriptor =
- getDescriptor().getMessageTypes().get(19);
+ getDescriptor().getMessageTypes().get(14);
internal_static_policy_attributes_ListAttributeValuesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_ListAttributeValuesRequest_descriptor,
new java.lang.String[] { "AttributeId", "State", });
internal_static_policy_attributes_ListAttributeValuesResponse_descriptor =
- getDescriptor().getMessageTypes().get(20);
+ getDescriptor().getMessageTypes().get(15);
internal_static_policy_attributes_ListAttributeValuesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_ListAttributeValuesResponse_descriptor,
new java.lang.String[] { "Values", });
internal_static_policy_attributes_CreateAttributeValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(21);
+ getDescriptor().getMessageTypes().get(16);
internal_static_policy_attributes_CreateAttributeValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_CreateAttributeValueRequest_descriptor,
new java.lang.String[] { "AttributeId", "Value", "Members", "Metadata", });
internal_static_policy_attributes_CreateAttributeValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(22);
+ getDescriptor().getMessageTypes().get(17);
internal_static_policy_attributes_CreateAttributeValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_CreateAttributeValueResponse_descriptor,
new java.lang.String[] { "Value", });
internal_static_policy_attributes_UpdateAttributeValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(23);
+ getDescriptor().getMessageTypes().get(18);
internal_static_policy_attributes_UpdateAttributeValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_UpdateAttributeValueRequest_descriptor,
new java.lang.String[] { "Id", "Members", "Metadata", "MetadataUpdateBehavior", });
internal_static_policy_attributes_UpdateAttributeValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(24);
+ getDescriptor().getMessageTypes().get(19);
internal_static_policy_attributes_UpdateAttributeValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_UpdateAttributeValueResponse_descriptor,
new java.lang.String[] { "Value", });
internal_static_policy_attributes_DeactivateAttributeValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(25);
+ getDescriptor().getMessageTypes().get(20);
internal_static_policy_attributes_DeactivateAttributeValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_DeactivateAttributeValueRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_policy_attributes_DeactivateAttributeValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(26);
+ getDescriptor().getMessageTypes().get(21);
internal_static_policy_attributes_DeactivateAttributeValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_DeactivateAttributeValueResponse_descriptor,
new java.lang.String[] { "Value", });
+ internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_descriptor,
+ new java.lang.String[] { "Fqns", "WithValue", });
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor,
+ new java.lang.String[] { "FqnAttributeValues", });
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_descriptor =
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor.getNestedTypes().get(0);
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_descriptor,
+ new java.lang.String[] { "Attribute", "Value", });
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_FqnAttributeValuesEntry_descriptor =
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor.getNestedTypes().get(1);
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_FqnAttributeValuesEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_FqnAttributeValuesEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
internal_static_policy_attributes_AssignKeyAccessServerToAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(27);
+ getDescriptor().getMessageTypes().get(24);
internal_static_policy_attributes_AssignKeyAccessServerToAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_AssignKeyAccessServerToAttributeRequest_descriptor,
new java.lang.String[] { "AttributeKeyAccessServer", });
internal_static_policy_attributes_AssignKeyAccessServerToAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(28);
+ getDescriptor().getMessageTypes().get(25);
internal_static_policy_attributes_AssignKeyAccessServerToAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_AssignKeyAccessServerToAttributeResponse_descriptor,
new java.lang.String[] { "AttributeKeyAccessServer", });
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeRequest_descriptor =
- getDescriptor().getMessageTypes().get(29);
+ getDescriptor().getMessageTypes().get(26);
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeRequest_descriptor,
new java.lang.String[] { "AttributeKeyAccessServer", });
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeResponse_descriptor =
- getDescriptor().getMessageTypes().get(30);
+ getDescriptor().getMessageTypes().get(27);
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_RemoveKeyAccessServerFromAttributeResponse_descriptor,
new java.lang.String[] { "AttributeKeyAccessServer", });
internal_static_policy_attributes_AssignKeyAccessServerToValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(31);
+ getDescriptor().getMessageTypes().get(28);
internal_static_policy_attributes_AssignKeyAccessServerToValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_AssignKeyAccessServerToValueRequest_descriptor,
new java.lang.String[] { "ValueKeyAccessServer", });
internal_static_policy_attributes_AssignKeyAccessServerToValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(32);
+ getDescriptor().getMessageTypes().get(29);
internal_static_policy_attributes_AssignKeyAccessServerToValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_AssignKeyAccessServerToValueResponse_descriptor,
new java.lang.String[] { "ValueKeyAccessServer", });
internal_static_policy_attributes_RemoveKeyAccessServerFromValueRequest_descriptor =
- getDescriptor().getMessageTypes().get(33);
+ getDescriptor().getMessageTypes().get(30);
internal_static_policy_attributes_RemoveKeyAccessServerFromValueRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_RemoveKeyAccessServerFromValueRequest_descriptor,
new java.lang.String[] { "ValueKeyAccessServer", });
internal_static_policy_attributes_RemoveKeyAccessServerFromValueResponse_descriptor =
- getDescriptor().getMessageTypes().get(34);
+ getDescriptor().getMessageTypes().get(31);
internal_static_policy_attributes_RemoveKeyAccessServerFromValueResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_policy_attributes_RemoveKeyAccessServerFromValueResponse_descriptor,
@@ -635,9 +587,8 @@ public static void registerAllExtensions(
build.buf.validate.ValidateProto.getDescriptor();
io.opentdf.platform.common.CommonProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
- com.google.protobuf.WrappersProto.getDescriptor();
- io.opentdf.platform.kasregistry.KeyAccessServerRegistryProto.getDescriptor();
- io.opentdf.platform.policy.namespaces.NamespacesProto.getDescriptor();
+ io.opentdf.platform.policy.ObjectsProto.getDescriptor();
+ io.opentdf.platform.policy.SelectorsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesServiceGrpc.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesServiceGrpc.java
index 7613c7c..5a0569e 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesServiceGrpc.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/AttributesServiceGrpc.java
@@ -113,35 +113,35 @@ io.opentdf.platform.policy.attributes.GetAttributeResponse> getGetAttributeMetho
return getGetAttributeMethod;
}
- private static volatile io.grpc.MethodDescriptor.policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
- @java.lang.Override public io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule() {
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum result = io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.forNumber(rule_);
- return result == null ? io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.UNRECOGNIZED : result;
+ @java.lang.Override public io.opentdf.platform.policy.AttributeRuleTypeEnum getRule() {
+ io.opentdf.platform.policy.AttributeRuleTypeEnum result = io.opentdf.platform.policy.AttributeRuleTypeEnum.forNumber(rule_);
+ return result == null ? io.opentdf.platform.policy.AttributeRuleTypeEnum.UNRECOGNIZED : result;
}
public static final int METADATA_FIELD_NUMBER = 100;
@@ -205,7 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
- if (rule_ != io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (rule_ != io.opentdf.platform.policy.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
output.writeEnum(3, rule_);
}
if (((bitField0_ & 0x00000001) != 0)) {
@@ -226,7 +226,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
- if (rule_ != io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
+ if (rule_ != io.opentdf.platform.policy.AttributeRuleTypeEnum.ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, rule_);
}
@@ -768,14 +768,14 @@ public Builder setNameBytes(
private int rule_ = 0;
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @param value The enum numeric value on the wire for rule to set.
* @return This builder for chaining.
*/
@@ -786,20 +786,20 @@ public Builder setRuleValue(int value) {
return this;
}
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule() {
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum result = io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.forNumber(rule_);
- return result == null ? io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum.UNRECOGNIZED : result;
+ public io.opentdf.platform.policy.AttributeRuleTypeEnum getRule() {
+ io.opentdf.platform.policy.AttributeRuleTypeEnum result = io.opentdf.platform.policy.AttributeRuleTypeEnum.forNumber(rule_);
+ return result == null ? io.opentdf.platform.policy.AttributeRuleTypeEnum.UNRECOGNIZED : result;
}
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @param value The rule to set.
* @return This builder for chaining.
*/
- public Builder setRule(io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum value) {
+ public Builder setRule(io.opentdf.platform.policy.AttributeRuleTypeEnum value) {
if (value == null) {
throw new NullPointerException();
}
@@ -809,7 +809,7 @@ public Builder setRule(io.opentdf.platform.policy.attributes.AttributeRuleTypeEn
return this;
}
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearRule() {
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeRequestOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeRequestOrBuilder.java
index db3e41c..e880ffe 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeRequestOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeRequestOrBuilder.java
@@ -41,15 +41,15 @@ public interface CreateAttributeRequestOrBuilder extends
getNameBytes();
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The enum numeric value on the wire for rule.
*/
int getRuleValue();
/**
- * .policy.attributes.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
+ * .policy.AttributeRuleTypeEnum rule = 3 [json_name = "rule", (.buf.validate.field) = { ... }
* @return The rule.
*/
- io.opentdf.platform.policy.attributes.AttributeRuleTypeEnum getRule();
+ io.opentdf.platform.policy.AttributeRuleTypeEnum getRule();
/**
*
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponse.java
index 4c81427..64726ed 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
/**
- *
.policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder> attributeBuilder_;
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder> attributeBuilder_;
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
+ public io.opentdf.platform.policy.Attribute getAttribute() {
if (attributeBuilder_ == null) {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder setAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute valu
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder setAttribute(
- io.opentdf.platform.policy.attributes.Attribute.Builder builderForValue) {
+ io.opentdf.platform.policy.Attribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setAttribute(
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder mergeAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
attribute_ != null &&
- attribute_ != io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance()) {
+ attribute_ != io.opentdf.platform.policy.Attribute.getDefaultInstance()) {
getAttributeBuilder().mergeFrom(value);
} else {
attribute_ = value;
@@ -486,7 +486,7 @@ public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute va
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder clearAttribute() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearAttribute() {
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.Attribute.Builder getAttributeBuilder() {
+ public io.opentdf.platform.policy.Attribute.Builder getAttributeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
- io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>(
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponseOrBuilder.java
index 28ca7d3..c43c8d9 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface CreateAttributeResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
boolean hasAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- io.opentdf.platform.policy.attributes.Attribute getAttribute();
+ io.opentdf.platform.policy.Attribute getAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder();
+ io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponse.java
index b48ea07..1e4b388 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getValue() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.Value getValue() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder> valueBuilder_;
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder> valueBuilder_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- public io.opentdf.platform.policy.attributes.Value getValue() {
+ public io.opentdf.platform.policy.Value getValue() {
if (valueBuilder_ == null) {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder setValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder setValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setValue(
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder mergeValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
value_ != null &&
- value_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
+ value_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
@@ -486,7 +486,7 @@ public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearValue() {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getValueBuilder() {
+ public io.opentdf.platform.policy.Value.Builder getValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponseOrBuilder.java
index aae3328..ea8d358 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/CreateAttributeValueResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface CreateAttributeValueResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
boolean hasValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- io.opentdf.platform.policy.attributes.Value getValue();
+ io.opentdf.platform.policy.Value getValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder();
+ io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponse.java
index 9d3bf7f..43a64cc 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder> attributeBuilder_;
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder> attributeBuilder_;
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
+ public io.opentdf.platform.policy.Attribute getAttribute() {
if (attributeBuilder_ == null) {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder setAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute valu
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder setAttribute(
- io.opentdf.platform.policy.attributes.Attribute.Builder builderForValue) {
+ io.opentdf.platform.policy.Attribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setAttribute(
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder mergeAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
attribute_ != null &&
- attribute_ != io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance()) {
+ attribute_ != io.opentdf.platform.policy.Attribute.getDefaultInstance()) {
getAttributeBuilder().mergeFrom(value);
} else {
attribute_ = value;
@@ -486,7 +486,7 @@ public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute va
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder clearAttribute() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearAttribute() {
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.Attribute.Builder getAttributeBuilder() {
+ public io.opentdf.platform.policy.Attribute.Builder getAttributeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
- io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>(
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponseOrBuilder.java
index 86c0824..a2e020f 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface DeactivateAttributeResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
boolean hasAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- io.opentdf.platform.policy.attributes.Attribute getAttribute();
+ io.opentdf.platform.policy.Attribute getAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder();
+ io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponse.java
index 56bc1e1..300c977 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getValue() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.Value getValue() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder> valueBuilder_;
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder> valueBuilder_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- public io.opentdf.platform.policy.attributes.Value getValue() {
+ public io.opentdf.platform.policy.Value getValue() {
if (valueBuilder_ == null) {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder setValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder setValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setValue(
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder mergeValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
value_ != null &&
- value_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
+ value_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
@@ -486,7 +486,7 @@ public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearValue() {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getValueBuilder() {
+ public io.opentdf.platform.policy.Value.Builder getValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponseOrBuilder.java
index 672ade8..bfd44f0 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/DeactivateAttributeValueResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface DeactivateAttributeValueResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
boolean hasValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- io.opentdf.platform.policy.attributes.Value getValue();
+ io.opentdf.platform.policy.Value getValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder();
+ io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponse.java
index 63918a3..00e665e 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Attribute attribute_;
+ private io.opentdf.platform.policy.Attribute attribute_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder> attributeBuilder_;
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder> attributeBuilder_;
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
public boolean hasAttribute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- public io.opentdf.platform.policy.attributes.Attribute getAttribute() {
+ public io.opentdf.platform.policy.Attribute getAttribute() {
if (attributeBuilder_ == null) {
- return attribute_ == null ? io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder setAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setAttribute(io.opentdf.platform.policy.attributes.Attribute valu
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder setAttribute(
- io.opentdf.platform.policy.attributes.Attribute.Builder builderForValue) {
+ io.opentdf.platform.policy.Attribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setAttribute(
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute value) {
+ public Builder mergeAttribute(io.opentdf.platform.policy.Attribute value) {
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
attribute_ != null &&
- attribute_ != io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance()) {
+ attribute_ != io.opentdf.platform.policy.Attribute.getDefaultInstance()) {
getAttributeBuilder().mergeFrom(value);
} else {
attribute_ = value;
@@ -486,7 +486,7 @@ public Builder mergeAttribute(io.opentdf.platform.policy.attributes.Attribute va
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
public Builder clearAttribute() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearAttribute() {
return this;
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.Attribute.Builder getAttributeBuilder() {
+ public io.opentdf.platform.policy.Attribute.Builder getAttributeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- public io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder() {
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
- io.opentdf.platform.policy.attributes.Attribute.getDefaultInstance() : attribute_;
+ io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
}
}
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Attribute, io.opentdf.platform.policy.attributes.Attribute.Builder, io.opentdf.platform.policy.attributes.AttributeOrBuilder>(
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponseOrBuilder.java
index 1a4eeae..2814e21 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface GetAttributeResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return Whether the attribute field is set.
*/
boolean hasAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
* @return The attribute.
*/
- io.opentdf.platform.policy.attributes.Attribute getAttribute();
+ io.opentdf.platform.policy.Attribute getAttribute();
/**
- * .policy.attributes.Attribute attribute = 1 [json_name = "attribute"];
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
*/
- io.opentdf.platform.policy.attributes.AttributeOrBuilder getAttributeOrBuilder();
+ io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponse.java
index 7303adc..0c117a0 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponse.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponse.java
@@ -41,9 +41,9 @@ protected java.lang.Object newInstance(
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
@java.lang.Override
@@ -51,19 +51,19 @@ public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.Value getValue() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.Value getValue() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
@java.lang.Override
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@@ -413,31 +413,31 @@ public Builder mergeFrom(
}
private int bitField0_;
- private io.opentdf.platform.policy.attributes.Value value_;
+ private io.opentdf.platform.policy.Value value_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder> valueBuilder_;
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder> valueBuilder_;
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- public io.opentdf.platform.policy.attributes.Value getValue() {
+ public io.opentdf.platform.policy.Value getValue() {
if (valueBuilder_ == null) {
- return value_ == null ? io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder setValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -451,10 +451,10 @@ public Builder setValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder setValue(
- io.opentdf.platform.policy.attributes.Value.Builder builderForValue) {
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
@@ -465,13 +465,13 @@ public Builder setValue(
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
+ public Builder mergeValue(io.opentdf.platform.policy.Value value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
value_ != null &&
- value_ != io.opentdf.platform.policy.attributes.Value.getDefaultInstance()) {
+ value_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
@@ -486,7 +486,7 @@ public Builder mergeValue(io.opentdf.platform.policy.attributes.Value value) {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -499,33 +499,33 @@ public Builder clearValue() {
return this;
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.Value.Builder getValueBuilder() {
+ public io.opentdf.platform.policy.Value.Builder getValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- public io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder() {
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
- io.opentdf.platform.policy.attributes.Value.getDefaultInstance() : value_;
+ io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
}
}
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.opentdf.platform.policy.attributes.Value, io.opentdf.platform.policy.attributes.Value.Builder, io.opentdf.platform.policy.attributes.ValueOrBuilder>(
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponseOrBuilder.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponseOrBuilder.java
index c0d9f1e..1dca509 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponseOrBuilder.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValueResponseOrBuilder.java
@@ -9,17 +9,17 @@ public interface GetAttributeValueResponseOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return Whether the value field is set.
*/
boolean hasValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
* @return The value.
*/
- io.opentdf.platform.policy.attributes.Value getValue();
+ io.opentdf.platform.policy.Value getValue();
/**
- * .policy.attributes.Value value = 1 [json_name = "value"];
+ * .policy.Value value = 1 [json_name = "value"];
*/
- io.opentdf.platform.policy.attributes.ValueOrBuilder getValueOrBuilder();
+ io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributesByValueFqnsRequest.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsRequest.java
similarity index 61%
rename from sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributesByValueFqnsRequest.java
rename to sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsRequest.java
index 1c580c5..fadb332 100644
--- a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributesByValueFqnsRequest.java
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsRequest.java
@@ -5,18 +5,18 @@
package io.opentdf.platform.policy.attributes;
/**
- * Protobuf type {@code policy.attributes.GetAttributesByValueFqnsRequest}
+ * Protobuf type {@code policy.attributes.GetAttributeValuesByFqnsRequest}
*/
-public final class GetAttributesByValueFqnsRequest extends
+public final class GetAttributeValuesByFqnsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:policy.attributes.GetAttributesByValueFqnsRequest)
- GetAttributesByValueFqnsRequestOrBuilder {
+ // @@protoc_insertion_point(message_implements:policy.attributes.GetAttributeValuesByFqnsRequest)
+ GetAttributeValuesByFqnsRequestOrBuilder {
private static final long serialVersionUID = 0L;
- // Use GetAttributesByValueFqnsRequest.newBuilder() to construct.
- private GetAttributesByValueFqnsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use GetAttributeValuesByFqnsRequest.newBuilder() to construct.
+ private GetAttributeValuesByFqnsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private GetAttributesByValueFqnsRequest() {
+ private GetAttributeValuesByFqnsRequest() {
fqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@@ -25,27 +25,32 @@ private GetAttributesByValueFqnsRequest() {
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new GetAttributesByValueFqnsRequest();
+ return new GetAttributeValuesByFqnsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributesByValueFqnsRequest_descriptor;
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributesByValueFqnsRequest_fieldAccessorTable
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest.class, io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest.Builder.class);
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest.class, io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest.Builder.class);
}
+ private int bitField0_;
public static final int FQNS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList fqns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return A list containing the fqns.
*/
@@ -54,6 +59,10 @@ protected java.lang.Object newInstance(
return fqns_;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return The count of fqns.
*/
@@ -61,6 +70,10 @@ public int getFqnsCount() {
return fqns_.size();
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the element to return.
* @return The fqns at the given index.
@@ -69,6 +82,10 @@ public java.lang.String getFqns(int index) {
return fqns_.get(index);
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the value to return.
* @return The bytes of the fqns at the given index.
@@ -78,6 +95,32 @@ public java.lang.String getFqns(int index) {
return fqns_.getByteString(index);
}
+ public static final int WITH_VALUE_FIELD_NUMBER = 2;
+ private io.opentdf.platform.policy.AttributeValueSelector withValue_;
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return Whether the withValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithValue() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return The withValue.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelector getWithValue() {
+ return withValue_ == null ? io.opentdf.platform.policy.AttributeValueSelector.getDefaultInstance() : withValue_;
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeValueSelectorOrBuilder getWithValueOrBuilder() {
+ return withValue_ == null ? io.opentdf.platform.policy.AttributeValueSelector.getDefaultInstance() : withValue_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -95,6 +138,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < fqns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqns_.getRaw(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getWithValue());
+ }
getUnknownFields().writeTo(output);
}
@@ -112,6 +158,10 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getFqnsList().size();
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getWithValue());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -122,13 +172,18 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest)) {
+ if (!(obj instanceof io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest)) {
return super.equals(obj);
}
- io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest other = (io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest) obj;
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest other = (io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest) obj;
if (!getFqnsList()
.equals(other.getFqnsList())) return false;
+ if (hasWithValue() != other.hasWithValue()) return false;
+ if (hasWithValue()) {
+ if (!getWithValue()
+ .equals(other.getWithValue())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -144,49 +199,53 @@ public int hashCode() {
hash = (37 * hash) + FQNS_FIELD_NUMBER;
hash = (53 * hash) + getFqnsList().hashCode();
}
+ if (hasWithValue()) {
+ hash = (37 * hash) + WITH_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getWithValue().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(byte[] data)
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -194,26 +253,26 @@ public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequ
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseDelimitedFrom(java.io.InputStream input)
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseDelimitedFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest 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 io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest parseFrom(
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -226,7 +285,7 @@ public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequ
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest prototype) {
+ public static Builder newBuilder(io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -242,34 +301,40 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code policy.attributes.GetAttributesByValueFqnsRequest}
+ * Protobuf type {@code policy.attributes.GetAttributeValuesByFqnsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return A list containing the fqns.
*/
@@ -437,6 +529,10 @@ private void ensureFqnsIsMutable() {
return fqns_;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return The count of fqns.
*/
@@ -444,6 +540,10 @@ public int getFqnsCount() {
return fqns_.size();
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the element to return.
* @return The fqns at the given index.
@@ -452,6 +552,10 @@ public java.lang.String getFqns(int index) {
return fqns_.get(index);
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the value to return.
* @return The bytes of the fqns at the given index.
@@ -461,6 +565,10 @@ public java.lang.String getFqns(int index) {
return fqns_.getByteString(index);
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index to set the value at.
* @param value The fqns to set.
@@ -476,6 +584,10 @@ public Builder setFqns(
return this;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param value The fqns to add.
* @return This builder for chaining.
@@ -490,6 +602,10 @@ public Builder addFqns(
return this;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param values The fqns to add.
* @return This builder for chaining.
@@ -504,6 +620,10 @@ public Builder addAllFqns(
return this;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
@@ -515,6 +635,10 @@ public Builder clearFqns() {
return this;
}
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param value The bytes of the fqns to add.
* @return This builder for chaining.
@@ -529,6 +653,127 @@ public Builder addFqnsBytes(
onChanged();
return this;
}
+
+ private io.opentdf.platform.policy.AttributeValueSelector withValue_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector, io.opentdf.platform.policy.AttributeValueSelector.Builder, io.opentdf.platform.policy.AttributeValueSelectorOrBuilder> withValueBuilder_;
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return Whether the withValue field is set.
+ */
+ public boolean hasWithValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return The withValue.
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector getWithValue() {
+ if (withValueBuilder_ == null) {
+ return withValue_ == null ? io.opentdf.platform.policy.AttributeValueSelector.getDefaultInstance() : withValue_;
+ } else {
+ return withValueBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public Builder setWithValue(io.opentdf.platform.policy.AttributeValueSelector value) {
+ if (withValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withValue_ = value;
+ } else {
+ withValueBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public Builder setWithValue(
+ io.opentdf.platform.policy.AttributeValueSelector.Builder builderForValue) {
+ if (withValueBuilder_ == null) {
+ withValue_ = builderForValue.build();
+ } else {
+ withValueBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public Builder mergeWithValue(io.opentdf.platform.policy.AttributeValueSelector value) {
+ if (withValueBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ withValue_ != null &&
+ withValue_ != io.opentdf.platform.policy.AttributeValueSelector.getDefaultInstance()) {
+ getWithValueBuilder().mergeFrom(value);
+ } else {
+ withValue_ = value;
+ }
+ } else {
+ withValueBuilder_.mergeFrom(value);
+ }
+ if (withValue_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public Builder clearWithValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ withValue_ = null;
+ if (withValueBuilder_ != null) {
+ withValueBuilder_.dispose();
+ withValueBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public io.opentdf.platform.policy.AttributeValueSelector.Builder getWithValueBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getWithValueFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ public io.opentdf.platform.policy.AttributeValueSelectorOrBuilder getWithValueOrBuilder() {
+ if (withValueBuilder_ != null) {
+ return withValueBuilder_.getMessageOrBuilder();
+ } else {
+ return withValue_ == null ?
+ io.opentdf.platform.policy.AttributeValueSelector.getDefaultInstance() : withValue_;
+ }
+ }
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector, io.opentdf.platform.policy.AttributeValueSelector.Builder, io.opentdf.platform.policy.AttributeValueSelectorOrBuilder>
+ getWithValueFieldBuilder() {
+ if (withValueBuilder_ == null) {
+ withValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.AttributeValueSelector, io.opentdf.platform.policy.AttributeValueSelector.Builder, io.opentdf.platform.policy.AttributeValueSelectorOrBuilder>(
+ getWithValue(),
+ getParentForChildren(),
+ isClean());
+ withValue_ = null;
+ }
+ return withValueBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -542,23 +787,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:policy.attributes.GetAttributesByValueFqnsRequest)
+ // @@protoc_insertion_point(builder_scope:policy.attributes.GetAttributeValuesByFqnsRequest)
}
- // @@protoc_insertion_point(class_scope:policy.attributes.GetAttributesByValueFqnsRequest)
- private static final io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:policy.attributes.GetAttributeValuesByFqnsRequest)
+ private static final io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest();
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest();
}
- public static io.opentdf.platform.policy.attributes.GetAttributesByValueFqnsRequest getDefaultInstance() {
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return A list containing the fqns.
*/
java.util.List
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @return The count of fqns.
*/
int getFqnsCount();
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the element to return.
* @return The fqns at the given index.
*/
java.lang.String getFqns(int index);
/**
+ *
+ * Required
+ *
+ *
* repeated string fqns = 1 [json_name = "fqns", (.buf.validate.field) = { ... }
* @param index The index of the value to return.
* @return The bytes of the fqns at the given index.
*/
com.google.protobuf.ByteString
getFqnsBytes(int index);
+
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return Whether the withValue field is set.
+ */
+ boolean hasWithValue();
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ * @return The withValue.
+ */
+ io.opentdf.platform.policy.AttributeValueSelector getWithValue();
+ /**
+ * .policy.AttributeValueSelector with_value = 2 [json_name = "withValue", (.buf.validate.field) = { ... }
+ */
+ io.opentdf.platform.policy.AttributeValueSelectorOrBuilder getWithValueOrBuilder();
}
diff --git a/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsResponse.java b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsResponse.java
new file mode 100644
index 0000000..e35c126
--- /dev/null
+++ b/sdkjava/src/main/java/io/opentdf/platform/policy/attributes/GetAttributeValuesByFqnsResponse.java
@@ -0,0 +1,1572 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: policy/attributes/attributes.proto
+
+// Protobuf Java Version: 3.25.3
+package io.opentdf.platform.policy.attributes;
+
+/**
+ * Protobuf type {@code policy.attributes.GetAttributeValuesByFqnsResponse}
+ */
+public final class GetAttributeValuesByFqnsResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.attributes.GetAttributeValuesByFqnsResponse)
+ GetAttributeValuesByFqnsResponseOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use GetAttributeValuesByFqnsResponse.newBuilder() to construct.
+ private GetAttributeValuesByFqnsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetAttributeValuesByFqnsResponse() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetAttributeValuesByFqnsResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 1:
+ return internalGetFqnAttributeValues();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.class, io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.Builder.class);
+ }
+
+ public interface AttributeAndValueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return Whether the attribute field is set.
+ */
+ boolean hasAttribute();
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return The attribute.
+ */
+ io.opentdf.platform.policy.Attribute getAttribute();
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder();
+
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return The value.
+ */
+ io.opentdf.platform.policy.Value getValue();
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder();
+ }
+ /**
+ * Protobuf type {@code policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue}
+ */
+ public static final class AttributeAndValue extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue)
+ AttributeAndValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AttributeAndValue.newBuilder() to construct.
+ private AttributeAndValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AttributeAndValue() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AttributeAndValue();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.opentdf.platform.policy.attributes.AttributesProto.internal_static_policy_attributes_GetAttributeValuesByFqnsResponse_AttributeAndValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue.class, io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ATTRIBUTE_FIELD_NUMBER = 1;
+ private io.opentdf.platform.policy.Attribute attribute_;
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return Whether the attribute field is set.
+ */
+ @java.lang.Override
+ public boolean hasAttribute() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return The attribute.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private io.opentdf.platform.policy.Value value_;
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return The value.
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.Value getValue() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getAttribute());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getValue());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getAttribute());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getValue());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue)) {
+ return super.equals(obj);
+ }
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue other = (io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue) obj;
+
+ if (hasAttribute() != other.hasAttribute()) return false;
+ if (hasAttribute()) {
+ if (!getAttribute()
+ .equals(other.getAttribute())) return false;
+ }
+ if (hasValue() != other.hasValue()) return false;
+ if (hasValue()) {
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAttribute()) {
+ hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getAttribute().hashCode();
+ }
+ if (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue 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 io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue 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 io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue 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(io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue 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 policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return Whether the attribute field is set.
+ */
+ public boolean hasAttribute() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ * @return The attribute.
+ */
+ public io.opentdf.platform.policy.Attribute getAttribute() {
+ if (attributeBuilder_ == null) {
+ return attribute_ == null ? io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
+ } else {
+ return attributeBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public Builder setAttribute(io.opentdf.platform.policy.Attribute value) {
+ if (attributeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attribute_ = value;
+ } else {
+ attributeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public Builder setAttribute(
+ io.opentdf.platform.policy.Attribute.Builder builderForValue) {
+ if (attributeBuilder_ == null) {
+ attribute_ = builderForValue.build();
+ } else {
+ attributeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public Builder mergeAttribute(io.opentdf.platform.policy.Attribute value) {
+ if (attributeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ attribute_ != null &&
+ attribute_ != io.opentdf.platform.policy.Attribute.getDefaultInstance()) {
+ getAttributeBuilder().mergeFrom(value);
+ } else {
+ attribute_ = value;
+ }
+ } else {
+ attributeBuilder_.mergeFrom(value);
+ }
+ if (attribute_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public Builder clearAttribute() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ attribute_ = null;
+ if (attributeBuilder_ != null) {
+ attributeBuilder_.dispose();
+ attributeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public io.opentdf.platform.policy.Attribute.Builder getAttributeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getAttributeFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ public io.opentdf.platform.policy.AttributeOrBuilder getAttributeOrBuilder() {
+ if (attributeBuilder_ != null) {
+ return attributeBuilder_.getMessageOrBuilder();
+ } else {
+ return attribute_ == null ?
+ io.opentdf.platform.policy.Attribute.getDefaultInstance() : attribute_;
+ }
+ }
+ /**
+ * .policy.Attribute attribute = 1 [json_name = "attribute"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>
+ getAttributeFieldBuilder() {
+ if (attributeBuilder_ == null) {
+ attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.Attribute, io.opentdf.platform.policy.Attribute.Builder, io.opentdf.platform.policy.AttributeOrBuilder>(
+ getAttribute(),
+ getParentForChildren(),
+ isClean());
+ attribute_ = null;
+ }
+ return attributeBuilder_;
+ }
+
+ private io.opentdf.platform.policy.Value value_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder> valueBuilder_;
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ * @return The value.
+ */
+ public io.opentdf.platform.policy.Value getValue() {
+ if (valueBuilder_ == null) {
+ return value_ == null ? io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
+ } else {
+ return valueBuilder_.getMessage();
+ }
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public Builder setValue(io.opentdf.platform.policy.Value value) {
+ if (valueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ } else {
+ valueBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public Builder setValue(
+ io.opentdf.platform.policy.Value.Builder builderForValue) {
+ if (valueBuilder_ == null) {
+ value_ = builderForValue.build();
+ } else {
+ valueBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public Builder mergeValue(io.opentdf.platform.policy.Value value) {
+ if (valueBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ value_ != null &&
+ value_ != io.opentdf.platform.policy.Value.getDefaultInstance()) {
+ getValueBuilder().mergeFrom(value);
+ } else {
+ value_ = value;
+ }
+ } else {
+ valueBuilder_.mergeFrom(value);
+ }
+ if (value_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = null;
+ if (valueBuilder_ != null) {
+ valueBuilder_.dispose();
+ valueBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public io.opentdf.platform.policy.Value.Builder getValueBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getValueFieldBuilder().getBuilder();
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ public io.opentdf.platform.policy.ValueOrBuilder getValueOrBuilder() {
+ if (valueBuilder_ != null) {
+ return valueBuilder_.getMessageOrBuilder();
+ } else {
+ return value_ == null ?
+ io.opentdf.platform.policy.Value.getDefaultInstance() : value_;
+ }
+ }
+ /**
+ * .policy.Value value = 2 [json_name = "value"];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>
+ getValueFieldBuilder() {
+ if (valueBuilder_ == null) {
+ valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.opentdf.platform.policy.Value, io.opentdf.platform.policy.Value.Builder, io.opentdf.platform.policy.ValueOrBuilder>(
+ getValue(),
+ getParentForChildren(),
+ isClean());
+ value_ = null;
+ }
+ return valueBuilder_;
+ }
+ @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:policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue)
+ private static final io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue();
+ }
+
+ public static io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public boolean containsFqnAttributeValues(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetFqnAttributeValues().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFqnAttributeValuesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public /* nullable */
+io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue getFqnAttributeValuesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue getFqnAttributeValuesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public boolean containsFqnAttributeValues(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetFqnAttributeValues().ensureBuilderMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFqnAttributeValuesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public /* nullable */
+io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue getFqnAttributeValuesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ @java.lang.Override
+ public io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue getFqnAttributeValuesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ public Builder removeFqnAttributeValues(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableFqnAttributeValues().ensureBuilderMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ public Builder putFqnAttributeValues(
+ java.lang.String key,
+ io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableFqnAttributeValues().ensureBuilderMap()
+ .put(key, value);
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ public Builder putAllFqnAttributeValues(
+ java.util.Map
+ * map of fqns to complete attributes and the one selected value
+ *
+ *
+ * map<string, .policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue> fqn_attribute_values = 1 [json_name = "fqnAttributeValues"];
+ */
+ public io.opentdf.platform.policy.attributes.GetAttributeValuesByFqnsResponse.AttributeAndValue.Builder putFqnAttributeValuesBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Map