How to parse BigQuery Audit Log in Java

Open
#12,180 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
google-cloud, java
Domain
cloud, data

Research direction

Start with the JsonFormat.printer().usingTypeRegistry(TYPE_REGISTRY) path and inspect Java dependency metadata for google.cloud.bigquery.logging.v1.AuditData. Done means establishing whether an official artifact exists or documenting the recommended handling for the reported type.googleapis.com URL, with a relevant test if the repository has one.

Written by the indexing model from the issue text.

Description

api: bigquery priority: p3 type: feature request

Hi, I’m using:

JsonFormat.printer()
    .usingTypeRegistry(TYPE_REGISTRY)
    .print(logEntry.getProtoPayload());

But I get the following exception:
Cannot find type for url: type.googleapis.com/google.cloud.bigquery.logging.v1.AuditData

I wasn’t able to find any Maven/Gradle dependency that provides
google.cloud.bigquery.logging.v1.AuditData so I can register it in the TypeRegistry.

Is there an official Java artifact for this type, or a recommended way to handle it?

This seems related to a previously reported issue in the .NET client:
https://github.com/googleapis/google-cloud-dotnet/issues/8963

In that case, support was added by publishing the required BigQuery logging proto types.
However, I couldn’t find an equivalent solution or dependency for Java.

Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
192

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-java

All issues in googleapis/google-cloud-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.