Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate logging client #4072

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public String extractNextToken(ListSinksResponse payload) {

@Override
public Iterable<LogSink> extractResources(ListSinksResponse payload) {
return payload.getSinksList();
return payload.getSinksList() != null
? payload.getSinksList()
: ImmutableList.<LogSink>of();
}
};

Expand Down Expand Up @@ -316,7 +318,9 @@ public String extractNextToken(ListExclusionsResponse payload) {

@Override
public Iterable<LogExclusion> extractResources(ListExclusionsResponse payload) {
return payload.getExclusionsList();
return payload.getExclusionsList() != null
? payload.getExclusionsList()
: ImmutableList.<LogExclusion>of();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ public String extractNextToken(ListLogEntriesResponse payload) {

@Override
public Iterable<LogEntry> extractResources(ListLogEntriesResponse payload) {
return payload.getEntriesList();
return payload.getEntriesList() != null
? payload.getEntriesList()
: ImmutableList.<LogEntry>of();
}
};

Expand Down Expand Up @@ -307,7 +309,9 @@ public String extractNextToken(ListMonitoredResourceDescriptorsResponse payload)
@Override
public Iterable<MonitoredResourceDescriptor> extractResources(
ListMonitoredResourceDescriptorsResponse payload) {
return payload.getResourceDescriptorsList();
return payload.getResourceDescriptorsList() != null
? payload.getResourceDescriptorsList()
: ImmutableList.<MonitoredResourceDescriptor>of();
}
};

Expand Down Expand Up @@ -341,7 +345,9 @@ public String extractNextToken(ListLogsResponse payload) {

@Override
public Iterable<String> extractResources(ListLogsResponse payload) {
return payload.getLogNamesList();
return payload.getLogNamesList() != null
? payload.getLogNamesList()
: ImmutableList.<String>of();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ public String extractNextToken(ListLogMetricsResponse payload) {

@Override
public Iterable<LogMetric> extractResources(ListLogMetricsResponse payload) {
return payload.getMetricsList();
return payload.getMetricsList() != null
? payload.getMetricsList()
: ImmutableList.<LogMetric>of();
}
};

Expand Down