Skip to content
Open
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 @@ -42,6 +42,7 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
Expand Down Expand Up @@ -360,7 +361,7 @@
@BetaApi
@Generated("by gapic-generator-java")
public class ComplianceClient implements BackgroundResource {
private final ComplianceSettings settings;
@Nullable private final ComplianceSettings settings;
private final ComplianceStub stub;

/** Constructs an instance of ComplianceClient with default settings. */
Expand Down Expand Up @@ -398,6 +399,7 @@ protected ComplianceClient(ComplianceStub stub) {
this.stub = stub;
}

@Nullable
public final ComplianceSettings getSettings() {
return settings;
}
Expand Down Expand Up @@ -1548,8 +1550,8 @@ public static class ListLocationsPage
ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> {

private ListLocationsPage(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ListLocationsResponse response) {
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable ListLocationsResponse response) {
super(context, response);
}

Expand All @@ -1559,14 +1561,14 @@ private static ListLocationsPage createEmptyPage() {

@Override
protected ListLocationsPage createPage(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ListLocationsResponse response) {
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable ListLocationsResponse response) {
return new ListLocationsPage(context, response);
}

@Override
public ApiFuture<ListLocationsPage> createPageAsync(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ApiFuture<ListLocationsResponse> futureResponse) {
return super.createPageAsync(context, futureResponse);
}
Expand All @@ -1580,7 +1582,8 @@ public static class ListLocationsFixedSizeCollection
ListLocationsPage,
ListLocationsFixedSizeCollection> {

private ListLocationsFixedSizeCollection(List<ListLocationsPage> pages, int collectionSize) {
private ListLocationsFixedSizeCollection(
@Nullable List<ListLocationsPage> pages, int collectionSize) {
super(pages, collectionSize);
}

Expand All @@ -1590,7 +1593,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() {

@Override
protected ListLocationsFixedSizeCollection createCollection(
List<ListLocationsPage> pages, int collectionSize) {
@Nullable List<ListLocationsPage> pages, int collectionSize) {
return new ListLocationsFixedSizeCollection(pages, collectionSize);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.util.List;
import javax.annotation.Generated;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
Expand Down Expand Up @@ -231,7 +232,7 @@ public static Builder newHttpJsonBuilder() {
}

/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
public static Builder newBuilder(@Nullable ClientContext clientContext) {
return new Builder(clientContext);
}

Expand All @@ -251,7 +252,7 @@ protected Builder() throws IOException {
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
protected Builder(@Nullable ClientContext clientContext) {
super(ComplianceStubSettings.newBuilder(clientContext));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
Expand Down Expand Up @@ -369,7 +370,7 @@
@BetaApi
@Generated("by gapic-generator-java")
public class EchoClient implements BackgroundResource {
private final EchoSettings settings;
@Nullable private final EchoSettings settings;
private final EchoStub stub;
private final OperationsClient httpJsonOperationsClient;
private final com.google.longrunning.OperationsClient operationsClient;
Expand Down Expand Up @@ -415,6 +416,7 @@ protected EchoClient(EchoStub stub) {
this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
}

@Nullable
public final EchoSettings getSettings() {
return settings;
}
Expand Down Expand Up @@ -1564,8 +1566,8 @@ public static class PagedExpandPage
extends AbstractPage<PagedExpandRequest, PagedExpandResponse, EchoResponse, PagedExpandPage> {

private PagedExpandPage(
PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
PagedExpandResponse response) {
@Nullable PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
@Nullable PagedExpandResponse response) {
super(context, response);
}

Expand All @@ -1575,14 +1577,14 @@ private static PagedExpandPage createEmptyPage() {

@Override
protected PagedExpandPage createPage(
PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
PagedExpandResponse response) {
@Nullable PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
@Nullable PagedExpandResponse response) {
return new PagedExpandPage(context, response);
}

@Override
public ApiFuture<PagedExpandPage> createPageAsync(
PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
@Nullable PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
ApiFuture<PagedExpandResponse> futureResponse) {
return super.createPageAsync(context, futureResponse);
}
Expand All @@ -1596,7 +1598,8 @@ public static class PagedExpandFixedSizeCollection
PagedExpandPage,
PagedExpandFixedSizeCollection> {

private PagedExpandFixedSizeCollection(List<PagedExpandPage> pages, int collectionSize) {
private PagedExpandFixedSizeCollection(
@Nullable List<PagedExpandPage> pages, int collectionSize) {
super(pages, collectionSize);
}

Expand All @@ -1606,7 +1609,7 @@ private static PagedExpandFixedSizeCollection createEmptyCollection() {

@Override
protected PagedExpandFixedSizeCollection createCollection(
List<PagedExpandPage> pages, int collectionSize) {
@Nullable List<PagedExpandPage> pages, int collectionSize) {
return new PagedExpandFixedSizeCollection(pages, collectionSize);
}
}
Expand Down Expand Up @@ -1647,12 +1650,13 @@ public static class PagedExpandLegacyMappedPage
PagedExpandLegacyMappedPage> {

private PagedExpandLegacyMappedPage(
PageContext<
@Nullable
PageContext<
PagedExpandRequest,
PagedExpandLegacyMappedResponse,
Map.Entry<String, PagedExpandResponseList>>
context,
PagedExpandLegacyMappedResponse response) {
@Nullable PagedExpandLegacyMappedResponse response) {
super(context, response);
}

Expand All @@ -1662,18 +1666,20 @@ private static PagedExpandLegacyMappedPage createEmptyPage() {

@Override
protected PagedExpandLegacyMappedPage createPage(
PageContext<
@Nullable
PageContext<
PagedExpandRequest,
PagedExpandLegacyMappedResponse,
Map.Entry<String, PagedExpandResponseList>>
context,
PagedExpandLegacyMappedResponse response) {
@Nullable PagedExpandLegacyMappedResponse response) {
return new PagedExpandLegacyMappedPage(context, response);
}

@Override
public ApiFuture<PagedExpandLegacyMappedPage> createPageAsync(
PageContext<
@Nullable
PageContext<
PagedExpandRequest,
PagedExpandLegacyMappedResponse,
Map.Entry<String, PagedExpandResponseList>>
Expand All @@ -1692,7 +1698,7 @@ public static class PagedExpandLegacyMappedFixedSizeCollection
PagedExpandLegacyMappedFixedSizeCollection> {

private PagedExpandLegacyMappedFixedSizeCollection(
List<PagedExpandLegacyMappedPage> pages, int collectionSize) {
@Nullable List<PagedExpandLegacyMappedPage> pages, int collectionSize) {
super(pages, collectionSize);
}

Expand All @@ -1702,7 +1708,7 @@ private static PagedExpandLegacyMappedFixedSizeCollection createEmptyCollection(

@Override
protected PagedExpandLegacyMappedFixedSizeCollection createCollection(
List<PagedExpandLegacyMappedPage> pages, int collectionSize) {
@Nullable List<PagedExpandLegacyMappedPage> pages, int collectionSize) {
return new PagedExpandLegacyMappedFixedSizeCollection(pages, collectionSize);
}
}
Expand Down Expand Up @@ -1736,8 +1742,8 @@ public static class ListLocationsPage
ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> {

private ListLocationsPage(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ListLocationsResponse response) {
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable ListLocationsResponse response) {
super(context, response);
}

Expand All @@ -1747,14 +1753,14 @@ private static ListLocationsPage createEmptyPage() {

@Override
protected ListLocationsPage createPage(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ListLocationsResponse response) {
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable ListLocationsResponse response) {
return new ListLocationsPage(context, response);
}

@Override
public ApiFuture<ListLocationsPage> createPageAsync(
PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
@Nullable PageContext<ListLocationsRequest, ListLocationsResponse, Location> context,
ApiFuture<ListLocationsResponse> futureResponse) {
return super.createPageAsync(context, futureResponse);
}
Expand All @@ -1768,7 +1774,8 @@ public static class ListLocationsFixedSizeCollection
ListLocationsPage,
ListLocationsFixedSizeCollection> {

private ListLocationsFixedSizeCollection(List<ListLocationsPage> pages, int collectionSize) {
private ListLocationsFixedSizeCollection(
@Nullable List<ListLocationsPage> pages, int collectionSize) {
super(pages, collectionSize);
}

Expand All @@ -1778,7 +1785,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() {

@Override
protected ListLocationsFixedSizeCollection createCollection(
List<ListLocationsPage> pages, int collectionSize) {
@Nullable List<ListLocationsPage> pages, int collectionSize) {
return new ListLocationsFixedSizeCollection(pages, collectionSize);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import java.util.List;
import javax.annotation.Generated;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
Expand Down Expand Up @@ -278,7 +279,7 @@ public static Builder newHttpJsonBuilder() {
}

/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
public static Builder newBuilder(@Nullable ClientContext clientContext) {
return new Builder(clientContext);
}

Expand All @@ -298,7 +299,7 @@ protected Builder() throws IOException {
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
protected Builder(@Nullable ClientContext clientContext) {
super(EchoStubSettings.newBuilder(clientContext));
}

Expand Down
Loading
Loading