# Package google.cloud.healthcare.v1beta1.consent

## Index

- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentService` (interface)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ActivateConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ArchiveUserDataMappingRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ArchiveUserDataMappingResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Attribute` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition.Category` (enum)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessRequest.ResponseView` (enum)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent.State` (enum)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentEvaluation` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentEvaluation.EvaluationResult` (enum)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentList` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateAttributeDefinitionRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentArtifactRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentStoreRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateUserDataMappingRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteAttributeDefinitionRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentArtifactRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentRevisionRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentStoreRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteUserDataMappingRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsRequest.ResponseView` (enum)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse.Result` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GcsDestination` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetAttributeDefinitionRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentArtifactRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentStoreRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetUserDataMappingRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Image` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListAttributeDefinitionsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListAttributeDefinitionsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentArtifactsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentArtifactsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentRevisionsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentRevisionsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentStoresRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentStoresResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListUserDataMappingsRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListUserDataMappingsResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Policy` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.QueryAccessibleDataRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.QueryAccessibleDataResponse` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.RejectConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.RevokeConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Signature` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateAttributeDefinitionRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateConsentRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateConsentStoreRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateUserDataMappingRequest` (message)
- `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` (message)

## ConsentService

A service for managing user consents.

| ActivateConsent |
|---|
| `` rpc ActivateConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ActivateConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Activates the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `ACTIVE`. If the latest revision of the specified Consent is in the `ACTIVE` state, no new revision is committed. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the specified consent is in the `REJECTED` or `REVOKED` state. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ArchiveUserDataMapping |
|---|
| `` rpc ArchiveUserDataMapping(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ArchiveUserDataMappingRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ArchiveUserDataMappingResponse`) `` Archives the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CheckDataAccess |
|---|
| `` rpc CheckDataAccess(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse`) `` Checks if a particular data_id of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` is consented for the specified use. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CreateAttributeDefinition |
|---|
| `` rpc CreateAttributeDefinition(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateAttributeDefinitionRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`) `` Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CreateConsent |
|---|
| `` rpc CreateConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CreateConsentArtifact |
|---|
| `` rpc CreateConsentArtifact(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentArtifactRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`) `` Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CreateConsentStore |
|---|
| `` rpc CreateConsentStore(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateConsentStoreRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`) `` Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` in the parent dataset. Attempting to create a consent store with the same ID as an existing store fails with an ALREADY_EXISTS error. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| CreateUserDataMapping |
|---|
| `` rpc CreateUserDataMapping(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CreateUserDataMappingRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`) `` Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteAttributeDefinition |
|---|
| `` rpc DeleteAttributeDefinition(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteAttributeDefinitionRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`. Fails if the Attribute definition is referenced by any `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`, or the latest revision of any `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteConsent |
|---|
| `` rpc DeleteConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` and its revisions. To keep a record of the Consent but mark it inactive, see \[RevokeConsent\]. To delete a revision of a Consent, see \[DeleteConsentRevision\]. This operation does not delete the related Consent artifact. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteConsentArtifact |
|---|
| `` rpc DeleteConsentArtifact(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentArtifactRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`. Fails if the artifact is referenced by the latest revision of any `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteConsentRevision |
|---|
| `` rpc DeleteConsentRevision(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentRevisionRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the specified revision of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if the specified revision is the latest revision. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteConsentStore |
|---|
| `` rpc DeleteConsentStore(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteConsentStoreRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` and removes all the consent store's data. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| DeleteUserDataMapping |
|---|
| `` rpc DeleteUserDataMapping(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.DeleteUserDataMappingRequest`) returns (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty`) `` Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| EvaluateUserConsents |
|---|
| `` rpc EvaluateUserConsents(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse`) `` Evaluates the user's `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` for all matching `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`. Note: User data mappings are indexed asynchronously, which can cause a slight delay between the time mappings are created or updated and when they are included in EvaluateUserConsents results. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| GetAttributeDefinition |
|---|
| `` rpc GetAttributeDefinition(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetAttributeDefinitionRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`) `` Gets the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| GetConsent |
|---|
| `` rpc GetConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Gets the specified revision of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`, or the latest revision if `revision_id` is not specified in the resource name. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| GetConsentArtifact |
|---|
| `` rpc GetConsentArtifact(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentArtifactRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`) `` Gets the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| GetConsentStore |
|---|
| `` rpc GetConsentStore(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetConsentStoreRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`) `` Gets the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| GetUserDataMapping |
|---|
| `` rpc GetUserDataMapping(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GetUserDataMappingRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`) `` Gets the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListAttributeDefinitions |
|---|
| `` rpc ListAttributeDefinitions(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListAttributeDefinitionsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListAttributeDefinitionsResponse`) `` Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListConsentArtifacts |
|---|
| `` rpc ListConsentArtifacts(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentArtifactsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentArtifactsResponse`) `` Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListConsentRevisions |
|---|
| `` rpc ListConsentRevisions(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentRevisionsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentRevisionsResponse`) `` Lists the revisions of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` in reverse chronological order. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListConsentStores |
|---|
| `` rpc ListConsentStores(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentStoresRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentStoresResponse`) `` Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` in the specified dataset. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListConsents |
|---|
| `` rpc ListConsents(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListConsentsResponse`) `` Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`, returning each Consent's latest revision. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| ListUserDataMappings |
|---|
| `` rpc ListUserDataMappings(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListUserDataMappingsRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ListUserDataMappingsResponse`) `` Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| QueryAccessibleData |
|---|
| `` rpc QueryAccessibleData(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.QueryAccessibleDataRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Queries all data_ids that are consented for a specified use in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` and writes them to a specified destination. The returned `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.longrunning#google.longrunning.Operation` includes a progress counter for the number of `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` processed. If the request is successful, a detailed response is returned of type `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.QueryAccessibleDataResponse`, contained in the \[response\]\[google.longrunning.Operation.result.response\] field when the operation finishes. The `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.longrunning#google.longrunning.Operation.FIELDS.google.protobuf.Any.google.longrunning.Operation.metadata` field type is `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1#google.cloud.healthcare.v1beta1.OperationMetadata`. Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). For example, the following sample log entry shows a `failed to evaluate consent policy` error that occurred during a QueryAccessibleData call to consent store `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}`. jsonPayload: { @type: "type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry" error: { code:  9 message:  "failed to evaluate consent policy" } resourceName: "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}" } logName: "projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data" operation: { id: "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}" producer:  "healthcare.googleapis.com/QueryAccessibleData" } receiveTimestamp:  "TIMESTAMP" resource: { labels: { consent_store_id:  "{consent_store_id}" dataset_id:  "{dataset_id}" location:  "{location_id}" project_id:  "{project_id}" } type:  "healthcare_consent_store" } severity:  "ERROR" timestamp:  "TIMESTAMP" Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| RejectConsent |
|---|
| `` rpc RejectConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.RejectConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Rejects the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `REJECTED`. If the latest revision of the specified Consent is in the `REJECTED` state, no new revision is committed. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the specified Consent is in the `ACTIVE` or `REVOKED` state. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| RevokeConsent |
|---|
| `` rpc RevokeConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.RevokeConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Revokes the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `REVOKED`. If the latest revision of the specified Consent is in the `REVOKED` state, no new revision is committed. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the given consent is in `DRAFT` or `REJECTED` state. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| UpdateAttributeDefinition |
|---|
| `` rpc UpdateAttributeDefinition(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateAttributeDefinitionRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`) `` Updates the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| UpdateConsent |
|---|
| `` rpc UpdateConsent(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateConsentRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`) `` Updates the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with the changes. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the specified Consent is in the `REJECTED` or `REVOKED` state. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| UpdateConsentStore |
|---|
| `` rpc UpdateConsentStore(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateConsentStoreRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`) `` Updates the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

| UpdateUserDataMapping |
|---|
| `` rpc UpdateUserDataMapping(`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UpdateUserDataMappingRequest`) returns (`https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`) `` Updates the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`. Authorization scopes :   Requires one of the following OAuth scopes: - `https://www.googleapis.com/auth/cloud-healthcare` - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). |

## ActivateConsentRequest

Activates the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `ACTIVE`. If the latest revision of the given Consent is in the `ACTIVE` state, no new revision is committed. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the given consent is in the `REJECTED` or `REVOKED` state.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to activate, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is specified in the name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.activate` |
| `consent_artifact` | `string` Required. The resource name of the Consent artifact that contains documentation of the user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. If the draft Consent had a Consent artifact, this Consent artifact overwrites it. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentArtifact`: - `healthcare.consentArtifacts.get` |
| Union field `expiration`. Optional. Allows setting expiration time for Consents. Expired consents are ignored in access determination methods such as \[CheckDataAccess\]. This value overrides the expiration duration configured for the consent store. `expiration` can be only one of the following: ||
| `expire_time` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` `` Timestamp in UTC of when this Consent is considered expired. |
| `ttl` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` `` The time to live for this Consent from when it is marked as active. |

## ArchiveUserDataMappingRequest

Archives the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the User data mapping to archive. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.userDataMappings.archive` |

## ArchiveUserDataMappingResponse

This type has no fields.
Archives the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

## Attribute

An attribute value for a Consent or User data mapping. Each Attribute must have a corresponding `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` in the consent store that defines the default and allowed values.

| Fields ||
|---|---|
| `attribute_definition_id` | `string` Indicates the name of an attribute defined in the consent store. |
| `values[]` | `string` The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values. |

## AttributeDefinition

A client-defined consent attribute.

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the Attribute definition, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}`. Cannot be changed after creation. |
| `description` | `string` Optional. A description of the attribute. |
| `category` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition.Category` `` Required. The category of the attribute. The value of this field cannot be changed after creation. |
| `allowed_values[]` | `string` Required. Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation. |
| `consent_default_values[]` | `string` Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value. |
| `data_mapping_default_value` | `string` Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category `RESOURCE`. |

## Category

The category of the attribute.

| Enums ||
|---|---|
| `CATEGORY_UNSPECIFIED` | No category specified. This option is invalid. |
| `RESOURCE` | Specify this category when this attribute describes the properties of resources. For example, data anonymity or data type. |
| `REQUEST` | Specify this category when this attribute describes the properties of requests. For example, requester's role or requester's organization. |

## CheckDataAccessRequest

Checks if a particular data_id of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` is consented for a given use.

| Fields ||
|---|---|
| `consent_store` | `string` Required. Name of the consent store where the requested data_id is stored, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentStore`: - `healthcare.consentStores.checkDataAccess` |
| `data_id` | `string` Required. The unique identifier of the resource to check access for. This identifier must correspond to a User data mapping in the given consent store. |
| `request_attributes` | `map<string, string>` The values of request attributes associated with this access request. |
| `response_view` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessRequest.ResponseView` `` Optional. The view for `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse`. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. |
| Union field `consent_selection`. The selection of `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` to evaluate the access request against. If no selection is specified, the access request is evaluated against all `ACTIVE` unexpired Consents with the same `user_id` as the data to check access for. `consent_selection` can be only one of the following: ||
| `consent_list` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentList` `` Optional. Specific `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` to evaluate the access request against. These Consents must have the same `user_id` as the evaluated User data mapping, must exist in the current `consent_store`, and have a `state` of either `ACTIVE` or `DRAFT`. A maximum of 100 Consents can be provided here. If no selection is specified, the access request is evaluated against all `ACTIVE` unexpired Consents with the same `user_id` as the evaluated User data mapping. |

## ResponseView

The supported views for `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse`.

| Enums ||
|---|---|
| `RESPONSE_VIEW_UNSPECIFIED` | No response view specified. The API will default to the BASIC view. |
| `BASIC` | Only the `consented` field is populated in `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse`. |
| `FULL` | All fields within `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.CheckDataAccessResponse` are populated. When set to `FULL`, all `ACTIVE` Consents are evaluated even if a matching policy is found during evaluation. |

## CheckDataAccessResponse

Checks if a particular data_id of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` is consented for a given use.

| Fields ||
|---|---|
| `consented` | `bool` Whether the requested resource is consented for the given use. |
| `consent_details` | ``map<string, `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentEvaluation`>`` The resource names of all evaluated `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` mapped to their evaluation. |

## Consent

Represents a user's consent.

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed after creation. |
| `revision_id` | `string` Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending `@{revision_id}` to the Consent's resource name. |
| `revision_create_time` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` `` Output only. The timestamp that the revision was created. |
| `user_id` | `string` Required. User's UUID provided by the client. |
| `policies[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Policy` `` Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. |
| `consent_artifact` | `string` Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. |
| `state` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent.State` `` Required. Indicates the current state of this Consent. |
| `metadata` | `map<string, string>` Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent. |
| Union field `expiration`. Optional. Allows setting expiration time for Consents. Expired Consents are ignored in access determination methods such as \[CheckDataAccess\]. This value replaces any default expiration duration configured for the Consent store. `expiration` can be only one of the following: ||
| `expire_time` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` `` Timestamp in UTC of when this Consent is considered expired. |
| `ttl` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` `` Input only. The time to live for this Consent from when it is created. |

## State

The state of the Consent resource.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | No state specified. Treated as ACTIVE only at the time of resource creation. |
| `ACTIVE` | The Consent is active and is considered when evaluating a user's consent on resources. |
| `ARCHIVED` | The archived state is currently not being used. |
| `REVOKED` | A revoked Consent is not considered when evaluating a user's consent on resources. |
| `DRAFT` | A draft Consent is not considered when evaluating a user's consent on resources unless explicitly specified. |
| `REJECTED` | When a draft Consent is rejected by a user, it is set to a rejected state. A rejected Consent is not considered when evaluating a user's consent on resources. |

## ConsentArtifact

Documentation of a user's consent.

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the Consent artifact, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. Cannot be changed after creation. |
| `user_id` | `string` Required. User's UUID provided by the client. |
| `user_signature` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Signature` `` Optional. User's signature. |
| `guardian_signature` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Signature` `` Optional. A signature from a guardian. |
| `witness_signature` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Signature` `` Optional. A signature from a witness. |
| `consent_content_screenshots[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Image` `` Optional. Screenshots, PDFs, or other binary information documenting the user's consent. |
| `consent_content_version` | `string` Optional. An string indicating the version of the consent information shown to the user. |
| `metadata` | `map<string, string>` Optional. Metadata associated with the Consent artifact. For example, the consent locale or user agent version. |

## ConsentEvaluation

The detailed evaluation of a particular `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`.

| Fields ||
|---|---|
| `evaluation_result` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentEvaluation.EvaluationResult` `` The evaluation result. |

## EvaluationResult

Indicates the evaluation result of a particular `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`.

| Enums ||
|---|---|
| `EVALUATION_RESULT_UNSPECIFIED` | No evaluation result specified. This option is invalid. |
| `NOT_APPLICABLE` | The Consent is not applicable to the requested access determination. For example, the Consent does not apply to the user for which the access determination is requested, or it has a `state` of `REVOKED`, or it has expired. |
| `NO_MATCHING_POLICY` | The Consent does not have a policy that matches the `resource_attributes` of the evaluated resource. |
| `NO_SATISFIED_POLICY` | The Consent has at least one policy that matches the `resource_attributes` of the evaluated resource, but no `authorization_rule` was satisfied. |
| `HAS_SATISFIED_POLICY` | The Consent has at least one policy that matches the `resource_attributes` of the evaluated resource, and at least one `authorization_rule` was satisfied. |

## ConsentList

List of resource names of `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` resources.

| Fields ||
|---|---|
| `consents[]` | `string` The resource names of the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` to evaluate against, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. |

## ConsentStore

Represents a consent store.

| Fields ||
|---|---|
| `name` | `string` Resource name of the consent store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}`. Cannot be changed after creation. |
| `default_consent_ttl` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` `` Optional. Default time to live for Consents created in this store. Must be at least 24 hours. Updating this field will not affect the expiration time of existing consents. |
| `labels` | `map<string, string>` Optional. User-supplied key-value pairs used to organize consent stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,62}. Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \[\\p{Ll}\\p{Lo}\\p{N}_-\]{0,63}. No more than 64 labels can be associated with a given store. For more information: <https://cloud.google.com/healthcare/docs/how-tos/labeling-resources> |
| `enable_consent_create_on_update` | `bool` Optional. If `true`, \[UpdateConsent\] \[google.cloud.healthcare.v1beta1.consent.UpdateConsent\] creates the Consent if it does not already exist. If unspecified, defaults to `false`. |

## CreateAttributeDefinitionRequest

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`.

| Fields ||
|---|---|
| `parent` | `string` Required. The name of the consent store that this Attribute definition belongs to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.attributeDefinitions.create` |
| `attribute_definition_id` | `string` Required. The ID of the Attribute definition to create. The string must match the following regex: `[_a-zA-Z][_a-zA-Z0-9]{0,255}` and must not be a reserved keyword within the Common Expression Language as listed on <https://github.com/google/cel-spec/blob/master/doc/langdef.md>. |
| `attribute_definition` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` `` Required. Attribute definition to create. |

## CreateConsentArtifactRequest

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`. Cannot be updated after creation.

| Fields ||
|---|---|
| `parent` | `string` Required. The name of the consent store this Consent artifact belongs to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consentArtifacts.create` |
| `consent_artifact` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` `` Required. Consent artifact to create. |

## CreateConsentRequest

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consents.create` |
| `consent` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` `` Required. Consent to create. |

## CreateConsentStoreRequest

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `parent` | `string` Required. The name of the dataset this consent store belongs to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consentStores.create` |
| `consent_store_id` | `string` Required. The ID of the consent store to create. The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. Cannot be changed after creation. |
| `consent_store` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` `` Required. Configuration info for this consent store. |

## CreateUserDataMappingRequest

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.userDataMappings.create` |
| `user_data_mapping` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` `` Required. User data mapping to create. |

## DeleteAttributeDefinitionRequest

Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Attribute definition to delete. To preserve referential integrity, Attribute definitions referenced by a User data mapping or the latest revision of a Consent cannot be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.attributeDefinitions.delete` |

## DeleteConsentArtifactRequest

Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent artifact to delete. To preserve referential integrity, Consent artifacts referenced by the latest revision of a Consent cannot be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consentArtifacts.delete` |

## DeleteConsentRequest

Deletes the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` and its revisions. To keep a record of the Consent but mark it inactive, see \[RevokeConsent\]. To delete a revision of a Consent, see \[DeleteConsentRevision\]. This operation does not delete the related Consent artifact.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to delete, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is specified in the name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.delete` |

## DeleteConsentRevisionRequest

Deletes the specified revision of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if the specified revision is the latest revision.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent revision to delete, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}@{revision_id}`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is not specified in the name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.delete` |

## DeleteConsentStoreRequest

Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the consent store to delete. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consentStores.delete` |

## DeleteUserDataMappingRequest

Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the User data mapping to delete. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.userDataMappings.delete` |

## EvaluateUserConsentsRequest

Evaluate a user's `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` for all matching `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

Note: User data mappings are indexed asynchronously, causing slight delays between the time mappings are created or updated and when they are included in EvaluateUserConsents results.

| Fields ||
|---|---|
| `consent_store` | `string` Required. Name of the consent store to retrieve User data mappings from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentStore`: - `healthcare.consentStores.evaluateUserConsents` |
| `user_id` | `string` Required. User ID to evaluate consents for. |
| `resource_attributes` | `map<string, string>` Optional. The values of resource attributes associated with the resources being requested. If no values are specified, then all resources are queried. |
| `request_attributes` | `map<string, string>` Required. The values of request attributes associated with this access request. |
| `response_view` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsRequest.ResponseView` `` Optional. The view for `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse`. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`. |
| `page_size` | `int32` Optional. Limit on the number of User data mappings to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. Token to retrieve the next page of results, or empty to get the first page. |
| Union field `consent_selection`. `consent_selection` can be only one of the following: ||
| `consent_list` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentList` `` Optional. Specific `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` to evaluate the access request against. These Consents must have the same `user_id` as the User data mappings being evalauted, must exist in the current `consent_store`, and must have a `state` of either `ACTIVE` or `DRAFT`. A maximum of 100 Consents can be provided here. If unspecified, all `ACTIVE` unexpired Consents in the current `consent_store` will be evaluated. |

## ResponseView

The supported views for `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse`.

| Enums ||
|---|---|
| `RESPONSE_VIEW_UNSPECIFIED` | No response view specified. The API will default to the BASIC view. |
| `BASIC` | Only the `data_id` and `consented` fields are populated in the response. |
| `FULL` | All fields within the response are populated. When set to `FULL`, all `ACTIVE` Consents are evaluated even if a matching policy is found during evaluation. |

## EvaluateUserConsentsResponse

| Fields ||
|---|---|
| `results[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.EvaluateUserConsentsResponse.Result` `` The consent evaluation result for each `data_id`. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. This token is valid for 72 hours after it is created. |

## Result

The consent evaluation result for a single `data_id`.

| Fields ||
|---|---|
| `data_id` | `string` The unique identifier of the evaluated resource. |
| `consented` | `bool` Whether the resource is consented for the given use. |
| `consent_details` | ``map<string, `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentEvaluation`>`` The resource names of all evaluated `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` mapped to their evaluation. |

## GcsDestination

The Cloud Storage location for export.

| Fields ||
|---|---|
| `uri_prefix` | `string` URI for a Cloud Storage directory where the server writes result files, in the format `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash, the service appends one when composing the object path. The user is responsible for creating the Cloud Storage bucket and directory referenced in `uri_prefix`. |

## GetAttributeDefinitionRequest

Gets an `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Attribute definition to get. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.attributeDefinitions.get` |

## GetConsentArtifactRequest

Gets a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent artifact to retrieve. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consentArtifacts.get` |

## GetConsentRequest

Gets the specified revision of a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent`, or the latest revision if `revision_id` is not specified in the resource name.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to retrieve, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. In order to retrieve a previous revision of the Consent, also provide the revision ID: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}@{revision_id}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.get` |

## GetConsentStoreRequest

Gets a `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the consent store to get. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consentStores.get` |

## GetUserDataMappingRequest

Gets the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the User data mapping to retrieve. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.userDataMappings.get` |

## Image

Raw bytes representing consent artifact content.

| Fields ||
|---|---|
| Union field `data`. `data` can be only one of the following: ||
| `raw_bytes` | `bytes` Consent artifact content represented as a stream of bytes. This field is populated when returned in GetConsentArtifact response, but not included in CreateConsentArtifact and ListConsentArtifact response. |
| `gcs_uri` | `string` Input only. Points to a Cloud Storage URI containing the consent artifact content. The URI must be in the following format: `gs://{bucket_id}/{object_id}`. The Cloud Healthcare API service account must have the `roles/storage.objectViewer` Cloud IAM role for this Cloud Storage location. The consent artifact content at this URI is copied to a Cloud Storage location managed by the Cloud Healthcare API. Responses to fetching requests return the consent artifact content in raw_bytes. |

## ListAttributeDefinitionsRequest

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store to retrieve Attribute definitions from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.attributeDefinitions.list` |
| `page_size` | `int32` Optional. Limit on the number of Attribute definitions to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. Token to retrieve the next page of results or empty to get the first page. |
| `filter` | `string` Optional. Restricts the attributes returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The only field available for filtering is `category`. For example, `filter=category=\"REQUEST\"`. |

## ListAttributeDefinitionsResponse

| Fields ||
|---|---|
| `attribute_definitions[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` `` The returned Attribute definitions. The maximum number of attributes returned is determined by the value of page_size in the ListAttributeDefinitionsRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## ListConsentArtifactsRequest

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store to retrieve consent artifacts from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consentArtifacts.list` |
| `page_size` | `int32` Optional. Limit on the number of consent artifacts to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. The next_page_token value returned from the previous List request, if any. |
| `filter` | `string` Optional. Restricts the artifacts returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The fields available for filtering are: - user_id. For example, `filter=user_id=\"user123\"`. - consent_content_version - metadata. For example, `filter=Metadata(\"testkey\")=\"value\"` or `filter=HasMetadata(\"testkey\")`. |

## ListConsentArtifactsResponse

| Fields ||
|---|---|
| `consent_artifacts[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentArtifact` `` The returned Consent artifacts. The maximum number of artifacts returned is determined by the value of page_size in the ListConsentArtifactsRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## ListConsentRevisionsRequest

Lists the revisions of the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` in reverse chronological order.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to retrieve revisions for. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.get` |
| `page_size` | `int32` Optional. Limit on the number of revisions to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. Token to retrieve the next page of results or empty if there are no more results in the list. |
| `filter` | `string` Optional. Restricts the revisions returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. Fields/functions available for filtering are: - user_id. For example, `filter='user_id="user123"'`. - consent_artifact - state - revision_create_time - metadata. For example, `filter=Metadata(\"testkey\")=\"value\"` or `filter=HasMetadata(\"testkey\")`. |

## ListConsentRevisionsResponse

| Fields ||
|---|---|
| `consents[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` `` The returned Consent revisions. The maximum number of revisions returned is determined by the value of `page_size` in the ListConsentRevisionsRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## ListConsentStoresRequest

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` in the given dataset.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the dataset. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consentStores.list` |
| `page_size` | `int32` Optional. Limit on the number of consent stores to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. Token to retrieve the next page of results, or empty to get the first page. |
| `filter` | `string` Optional. Restricts the stores returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. Only filtering on labels is supported. For example, `filter=labels.key=value`. |

## ListConsentStoresResponse

| Fields ||
|---|---|
| `consent_stores[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` `` The returned consent stores. The maximum number of stores returned is determined by the value of page_size in the ListConsentStoresRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## ListConsentsRequest

Lists all the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`, returning each Consent's latest revision.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store to retrieve Consents from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.consents.list` |
| `page_size` | `int32` Optional. Limit on the number of Consents to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. The next_page_token value returned from the previous List request, if any. |
| `filter` | `string` Optional. Restricts the consents returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The fields available for filtering are: - user_id. For example, `filter='user_id="user123"'`. - consent_artifact - state - revision_create_time - metadata. For example, `filter=Metadata(\"testkey\")=\"value\"` or `filter=HasMetadata(\"testkey\")`. |

## ListConsentsResponse

| Fields ||
|---|---|
| `consents[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` `` The returned Consents. The maximum number of Consents returned is determined by the value of page_size in the ListConsentsRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## ListUserDataMappingsRequest

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `parent` | `string` Required. Name of the consent store to retrieve User data mappings from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.userDataMappings.list` |
| `page_size` | `int32` Optional. Limit on the number of User data mappings to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `page_token` | `string` Optional. Token to retrieve the next page of results, or empty to get the first page. |
| `filter` | `string` Optional. Restricts the user data mappings returned to those matching a filter. The following syntax is available: - A string field value can be written as text inside quotation marks, for example `"query text"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `"Comment = great"` returns messages with `great` in the comment field. - A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. - Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The fields available for filtering are: - data_id - user_id. For example, `filter=user_id=\"user123\"`. - archived - archive_time |

## ListUserDataMappingsResponse

| Fields ||
|---|---|
| `user_data_mappings[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` `` The returned User data mappings. The maximum number of User data mappings returned is determined by the value of page_size in the ListUserDataMappingsRequest. |
| `next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## Policy

Represents a user's consent in terms of the resources that can be accessed and under what conditions.

| Fields ||
|---|---|
| `resource_attributes[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Attribute` `` The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user. |
| `authorization_rule` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.type#google.type.Expr` `` Required. The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have `IN` operator as well as at most 10 logical operators that are limited to `AND` (`&&`), `OR` (`||`). |

## QueryAccessibleDataRequest

Queries all data_ids that are consented for a given use in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` and writes them to a specified destination.

The returned `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.longrunning#google.longrunning.Operation` includes a progress counter for the number of `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` processed.

Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging) and \[QueryAccessibleData\] for a sample log entry).

| Fields ||
|---|---|
| `consent_store` | `string` Required. Name of the consent store to retrieve User data mappings from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentStore`: - `healthcare.consentStores.queryAccessibleData` |
| `resource_attributes` | `map<string, string>` Optional. The values of resource attributes associated with the type of resources being requested. If no values are specified, then all resource types are included in the output. |
| `request_attributes` | `map<string, string>` The values of request attributes associated with this access request. |
| Union field `destination`. Required. The output destination of the result file. `destination` can be only one of the following: ||
| `gcs_destination` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.GcsDestination` `` The Cloud Storage destination. The Cloud Healthcare API service account must have the `roles/storage.objectAdmin` Cloud IAM role for this Cloud Storage location. The object name is in the following format: query-accessible-data-result-{operation_id}.txt where each line contains a single data_id. |

## QueryAccessibleDataResponse

Response for successful QueryAccessibleData operations. This structure is included in the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.longrunning#google.longrunning.Operation.FIELDS.google.protobuf.Any.google.longrunning.Operation.response` upon operation completion.

| Fields ||
|---|---|
| `gcs_uris[]` | `string` List of files, each of which contains a list of data_id(s) that are consented for a specified use in the request. |

## RejectConsentRequest

Rejects the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `REJECTED`. If the latest revision of the given Consent is in the `REJECTED` state, no new revision is committed.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to reject, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is specified in the name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.reject` |
| `consent_artifact` | `string` Optional. The resource name of the Consent artifact that contains documentation of the user's rejection of the draft Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. If the draft Consent had a Consent artifact, this Consent artifact overwrites it. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentArtifact`: - `healthcare.consentArtifacts.get` |

## RevokeConsentRequest

Revokes the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with `state` updated to `REVOKED`. If the latest revision of the given Consent is in the `REVOKED` state, no new revision is committed.

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the Consent to revoke, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is specified in the name. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `healthcare.consents.revoke` |
| `consent_artifact` | `string` Optional. The resource name of the Consent artifact that contains proof of the user's revocation of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentArtifact`: - `healthcare.consentArtifacts.get` |

## Signature

User signature.

| Fields ||
|---|---|
| `user_id` | `string` Required. User's UUID provided by the client. |
| `image` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Image` `` Optional. An image of the user's signature. |
| `metadata` | `map<string, string>` Optional. Metadata associated with the user's signature. For example, the user's name or the user's title. |
| `signature_time` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` `` Optional. Timestamp of the signature. |

## UpdateAttributeDefinitionRequest

Updates the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition`.

| Fields ||
|---|---|
| `attribute_definition` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` `` Required. The Attribute definition resource that updates the resource on the server. Only the fields listed in `update_mask` are applied. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `attributeDefinition`: - `healthcare.attributeDefinitions.update` |
| `update_mask` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` `` Required. The update mask that applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>. Only the `description`, `allowed_values`, `consent_default_values` and `data_mapping_default_value` fields can be updated. The updated `allowed_values` must contain all values from the previous `allowed_values`. |

## UpdateConsentRequest

Updates the latest revision of the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` by committing a new revision with the changes. A `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.FAILED_PRECONDITION` error occurs if the latest revision of the given consent is in the `REJECTED` or `REVOKED` state.

| Fields ||
|---|---|
| `consent` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Consent` `` Required. The Consent resource that updates the resource on the server. Only the fields listed in `update_mask` are applied. An `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.rpc#google.rpc.Code.ENUM_VALUES.google.rpc.Code.INVALID_ARGUMENT` error occurs if `revision_id` is specified as part of the Consent's `name`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consent`: - `healthcare.consents.update` |
| `update_mask` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` `` Required. The update mask to apply to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>. Only the `user_id`, `policies`, `consent_artifact`, and `metadata` fields can be updated. |

## UpdateConsentStoreRequest

Updates the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore`.

| Fields ||
|---|---|
| `consent_store` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.ConsentStore` `` Required. The consent store resource that updates the resource on the server. Only the fields listed in `update_mask` are applied. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `consentStore`: - `healthcare.consentStores.update` |
| `update_mask` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` `` Required. The update mask that applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>. Only the `labels`, `default_consent_ttl`, and `enable_consent_create_on_update` fields are allowed to be updated. |

## UpdateUserDataMappingRequest

Updates the `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping`.

| Fields ||
|---|---|
| `user_data_mapping` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.UserDataMapping` `` Required. The User data mapping resource that updates the resource on the server. Only the fields listed in `update_mask` are applied. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `userDataMapping`: - `healthcare.userDataMappings.update` |
| `update_mask` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask` `` Required. The update mask that applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>. Only the `data_id`, `user_id` and `resource_attributes` fields can be updated. |

## UserDataMapping

Maps a resource to the associated user and `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Attribute`.

| Fields ||
|---|---|
| `name` | `string` Resource name of the User data mapping, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}`. |
| `data_id` | `string` Required. A unique identifier for the mapped resource. |
| `user_id` | `string` Required. User's UUID provided by the client. |
| `resource_attributes[]` | `` `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Attribute` `` Attributes of the resource. Only explicitly set attributes are displayed here. `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.AttributeDefinition` with defaults set implicitly apply to these \[User data mappings\] \[google.cloud.healthcare.v1beta1.consent.UserDataMappings\]. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each `https://docs.cloud.google.com/healthcare-api/docs/reference/rpc/google.cloud.healthcare.v1beta1/consent#google.cloud.healthcare.v1beta1.consent.Attribute`. |
| `archived` | `bool` Output only. Indicates whether this mapping is archived. |
| `archive_time` | `` `https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` `` Output only. Indicates the time when this mapping was archived. |