Skip to content

How to parse BigQuery Audit Log in Java #12180

@yuvalGa

Description

@yuvalGa

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:
googleapis/google-cloud-dotnet#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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions