Skip to content

Commit

Permalink
fix: enable v2.LogEntry Protobufs converter
Browse files Browse the repository at this point in the history
  • Loading branch information
cindy-peng committed Jan 17, 2024
1 parent eb8f9de commit 579e63c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public static LogEntry of(String logName, MonitoredResource resource, Payload<?>
return newBuilder(payload).setLogName(logName).setResource(resource).build();
}

static LogEntry fromPb(com.google.logging.v2.LogEntry entryPb) {
public static LogEntry fromPb(com.google.logging.v2.LogEntry entryPb) {
Builder builder = newBuilder(Payload.fromPb(entryPb));
builder.setLabels(entryPb.getLabelsMap());
builder.setSeverity(Severity.fromPb(entryPb.getSeverity()));
Expand Down Expand Up @@ -805,7 +805,7 @@ static LogEntry fromPb(com.google.logging.v2.LogEntry entryPb) {
return builder.build();
}

static Function<LogEntry, com.google.logging.v2.LogEntry> toPbFunction(final String projectId) {
public static Function<LogEntry, com.google.logging.v2.LogEntry> toPbFunction(final String projectId) {
return (LogEntry entry) -> {
return entry.toPb(projectId);
};
Expand Down

0 comments on commit 579e63c

Please sign in to comment.